1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
use crate::Vect; pub mod angle; pub mod curve; pub mod vect; pub mod base; pub mod rgba; pub mod mat; pub mod rect; pub mod circle; pub mod raycast; /// Trait for implementing intersects method witch returns whether two geometric objects has at /// least one common point pub trait Intersection<T> { fn intersects(&self, o: &T) -> bool; } /// Trait for implementing intersects_points method witch returns one oer two intersection points of /// two geometric objects pub trait IntersectionPoints<T> { fn intersects_points(&self, o: &T) -> [Option<Vect>; 2]; }