Expand description
Auto-generated module
🤖 Generated with SplitRS
Functions§
- add3
- Add two 3D vectors.
- art_
gallery_ greedy - Greedy vertex-guard approximation for the art gallery problem.
- ccw
- Test if three 2D points are in counter-clockwise orientation.
- check_
full_ coverage - Check if every vertex of a polygon is covered by the given set of guards.
- circumcircle_
2d - Circumcircle of three 2D points. Returns (center, radius²) or None if degenerate.
- clip_
polygon_ by_ edge - Clip a polygon against an infinite half-plane defined by the directed edge from
edge_atoedge_b(the inside is to the left). - collinear
- Test if three 2D points are collinear (within tolerance).
- convex_
hull_ 2d - Compute the 2D convex hull of a point set (Graham scan).
- convex_
hull_ 3d - Compute the 3D convex hull of a set of points using the incremental algorithm.
- cross3
- Cross product of two 3D vectors.
- delaunay_
2d - Bowyer-Watson incremental Delaunay triangulation for 2D points.
- dot3
- Dot product of two 3D vectors.
- in_
circumcircle_ 2d - Test if point
plies inside the circumcircle of triangle (a, b, c). - line_
intersect_ 2d - Intersection point of two lines (if they are not parallel).
- mag3
- Magnitude of a 3D vector.
- mag3_sq
- Squared magnitude of a 3D vector.
- minkowski_
sum - Compute the Minkowski sum of two convex polygons P and Q.
- normalize3
- Normalize a 3D vector; returns the zero vector if the magnitude is too small.
- point_
in_ convex_ polygon - Test if point
plies inside a convex polygon (given in CCW order). - point_
in_ triangle - Test if point
plies inside the triangle (a, b, c) using barycentric coordinates. - polygon_
area - Compute the area of a simple polygon (positive for CCW).
- scale3
- Scale a 3D vector.
- sub3
- Subtract two 3D points.
- sutherland_
hodgman - Clip a subject polygon against a convex clipping polygon using the Sutherland-Hodgman algorithm.
- voronoi_
from_ delaunay - Compute the dual Voronoi diagram from a Delaunay triangulation.
Type Aliases§
- FaceId
- Index of a face in a
HalfEdgeMesh. - Half
Edge Id - Index of a half-edge in a
HalfEdgeMesh. - Point3
- A point in 3D space represented as a plain array.
- Vertex
Id - Index of a vertex in a
HalfEdgeMesh.