Skip to content

p4ymak/triangle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Struct for geometric triangles.

Features:

  • AABB
  • Angles
  • Area
  • Barycentric to Cartesian transform
  • Cartesian to Barycentric transform
  • Centroid
  • Circumradius
  • Checks wheter a given point lies inside the triangle
  • Checks if vertices are collinear
  • Heights
  • Inradius
  • Is it equilateral
  • Is it golden
  • Is it isosceles
  • Is it right-angled
  • Are Points sorted by axis
  • Medians
  • Normal
  • Perimeter
  • Ray/Triangle intersection by Möller & Trumbore algorithm
  • Semiperimeter
  • Sides
  • Sort Points by axis