plexus 0.0.11

2D and 3D mesh processing.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::geometry::convert::AsPosition;
use crate::geometry::{Geometry, Ray, Space};

pub trait RayIntersection<S>
where
    S: Space,
    <S as Geometry>::Vertex: AsPosition<Target = S::Point>,
{
    fn intersection(&self, ray: Ray<S>) -> Option<(S::Scalar, S::Scalar)>;
}