Expand description
Geometry utilities
Modules§
- intersect
- Primitive intersection routines
- primitive
- Affine, convex, and combinatorial spaces
- shape
- 3D volumetric forms
Structs§
- Aabb2
- 2D axis-aligned bounding box.
- Aabb3
- 3D axis-aligned bounding box.
- Capsule3
- 3D Z-axis-aligned capsule
- Cylinder3
- 3D Z-axis-aligned cylinder
- Interval
- 1D interval
- Line2
- An infinitely extended line in 2D space defined by a base point and normalized direction
- Line3
- An infinitely extended line in 3D space defined by a base point and normalized direction
- Plane3
- A plane in 3D space defined by a base point and (unit) normal vector
- Segment2
- A 1-simplex or line segment in 2D space.
- Segment3
- A 1-simplex or line segment in 3D space.
- Sphere2
- Sphere in 2D space (a circle)
- Sphere3
- Sphere in 3D space
- Tetrahedron3
- A 3-simplex or tetrahedron in 3D space
- Triangle2
- A 2-simplex or triangle in 2D space
- Triangle3
- A 2-simplex or triangle in 3D space
Enums§
Traits§
Functions§
- colinear_
2d - Returns true when three points lie on the same line in 2D space.
- colinear_
3d - Returns true when three points lie on the same line in 3D space.
- coplanar_
3d - Returns true when four points lie on the same plane in 3D space.
- determinant_
3d - Computes the determinant of a matrix formed by the three points as columns
- point2_
max - Coordinate-wise max
- point2_
min - Coordinate-wise min
- point3_
max - Coordinate-wise max
- point3_
min - Coordinate-wise min
- project_
2d_ point_ on_ line - Given a 2D point and a 2D line, returns the nearest point on the line to the given point
- project_
3d_ point_ on_ line - Given a 3D point and a 3D line, returns the nearest point on the line to the given point
- triangle_
3d_ area2 - Square area of three points in 3D space.