Skip to main content

Crate use_intersection

Crate use_intersection 

Source
Expand description

§use-intersection

Intersection result primitives for the RustUse geometry workspace.

use-intersection starts with shared result enums and traits. It does not try to implement the full matrix of shape intersection algorithms.

§Example

use use_intersection::Intersection2;
use use_point::Point2;

let hit = Intersection2::Point(Point2::new(1.0, 2.0));

assert!(!hit.is_empty());

Enums§

Intersection2
A minimal two-dimensional intersection result.

Traits§

Intersects
A trait for values that can report whether they intersect Rhs.