Trait fenris_geometry::ConvexPolyhedron
source · pub trait ConvexPolyhedron<'a, T: Scalar>: Debug {
type Face: ConvexPolygon3d<'a, T>;
fn num_faces(&self) -> usize;
fn get_face(&self, index: usize) -> Option<Self::Face>;
fn compute_signed_distance(
&self,
point: &Point3<T>
) -> SignedDistanceResult<T, U3>
where
T: Real,
{ ... }
fn compute_volume(&'a self) -> T
where
T: Real,
{ ... }
fn contains_point(&'a self, point: &Point3<T>) -> bool
where
T: Real,
{ ... }
}
Required Associated Types§
type Face: ConvexPolygon3d<'a, T>
Required Methods§
Provided Methods§
fn compute_signed_distance(
&self,
point: &Point3<T>
) -> SignedDistanceResult<T, U3>where
T: Real,
fn compute_volume(&'a self) -> Twhere
T: Real,
sourcefn contains_point(&'a self, point: &Point3<T>) -> boolwhere
T: Real,
fn contains_point(&'a self, point: &Point3<T>) -> boolwhere
T: Real,
Check if this polyhedron contains the given point.
TODO: Write tests