Euclidean
This crate contains a collection of type agnostic euclidean algorithms..
These include, but are not limited to:
- Triangle box intersection.
- Segment-segment intersection.
- Projecting a point onto a line.
- Projecting a point onto a plane.
- Find the closest points on two lines.
- And more.
The crate relies on linear_isomoprhic to abstract over the underlying
type, meaning that it can be used with a wide variety of underlying vector types.
Some functions are dimension agnostic. However, many assume $\mathbb{R}^3$.
Example use:
use cratesegment_segment_intersection;
use PI;
type Vec2 = Vector2;
type Vec3 = Vector3;
The library is tested directly against the Nalgebra crate. If you find that it doesn't work with your own vector type, please open an issue.