triangle 0.1.350

Struct for geometric triangles. Includes Barycentric-Cartesian transforms and stuff..
Documentation

Struct for geometric triangles. The triangle defined by three 3D points with coordinates of f64 values.

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
  • Medians
  • Normal
  • Perimeter
  • Ray/Triangle intersection by Möller & Trumbore algorithm
  • Semiperimeter
  • Sides