intersection_detection
This crate provides functionality for computing intersections between line segments in 2D space. It defines types for representing intersections and includes methods for checking intersection results, converting between intersection types, and rounding intersection components to a specified precision.
Usage
To use this crate, add it as a dependency to your Cargo.toml
file:
= "0.1"
intersection_detection
Example
use ;
Points
Implement FromIntoPointLike
to use custom types as points.
Out-of-the-box implementations are provided for:
[F; 2]
[F; 3]
(F, F)
(F, F, F)
.