triangle

Crates.iotriangle
lib.rstriangle
version0.2.0
sourcesrc
created_at2020-12-13 13:52:06.438597
updated_at2023-04-14 13:54:30.636148
descriptionStruct for geometric triangles. Includes Barycentric-Cartesian transforms and stuff..
homepage
repositoryhttps://github.com/p4ymak/triangle
max_upload_size
id322401
size15,759
Roman Chumak (p4ymak)

documentation

README

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
Commit count: 46

cargo fmt