Functions§
- arbitrary_
orthogonal_ frame - Construct an orthogonal frame of reference in $R^3$ from a single vector.
- find_
best_ ortho_ index - Find the index of a vector to use for a basis of a set of points. The first vector is assumed to be $(p_1 - p_0)$, the second is $(p_i - p_0)$ where $p_i$ is the most orthogonal vector relative to $(p_1 - p_0)$.
- find_
planar_ orthonormal_ basis - Find an orthonormal basis for a planar set of points in some dimension. The order of the return elements is, origin, first basis, second basis.
- interior_
polygon_ point - Find an arbitrary point that is guaranteed to lie on the inside of the simple polygon described by its ordered vertex sequence.
- line_
line_ intersection - Tries to find the intersection between two lines in 3D. Returns the
intersection as a distance from
origin1. i.e. the intersection point isorigin1 + t * ray1wheretis the return value. - line_
segment_ intersection - Computes the intersection of a line and a segment.
- orthogonal_
vec_ from_ basis - orthogonal_
vector - Robustly obtain a vector orthogonal to an input vector.
- osculating_
circle - Find the center of the osculating circle of 3 unaligned points. returns the center of the osculating circle.
- point_
line_ distance - point_
segment_ distance - Measure the shortest distance from a point to a segment defined by two endpoints.
- project_
onto_ line - project_
onto_ line_ distance - Projects a point onto a line and returns a signed distance from the origin of the line to the projected point.
- project_
onto_ open_ poly_ line - Find the point closest to an input point amongst all segments of a polyline.
- project_
point_ onto_ plane - Orthogonally project a point onto a plane.
- project_
point_ onto_ segment - Find the closest point on a segment to an input point.
- project_
point_ onto_ triangle - Project a point onto a triangle. Meaning the shortest distance from any point in the triangle to the input point.
- segment_
segment_ distance - Computes the closest distance of two segments (not lines).
- segment_
segment_ intersection - Computes the intersection of 2 segments.
- segment_
segment_ intersection_ tolerance - Like
segment_segment_intersectionbut it allows specifying a tolerance value for the end points. i.e. if the intersection occurs near either endpoint, such as in the vertex joining 2 sides of a triangle, it won’t be considered an intersection. Use positive epsilons to make the test stricter and negative to make it more permissive. - segment_
segment_ shortest_ points - Find the two points closest to each other on two segments.
- triangle_
aabb_ intersection_ test - Performs triangle-AABB intersection test using SAT in $R^3$.