pub struct PolyMeshFace<'a, T: Scalar, D: DimName>where
DefaultAllocator: Allocator<T, D>,{ /* private fields */ }
Trait Implementations§
Source§impl<'a, T: Scalar> ConvexPolygon3d<'a, T> for PolyMeshFace<'a, T, U3>
impl<'a, T: Scalar> ConvexPolygon3d<'a, T> for PolyMeshFace<'a, T, U3>
fn num_vertices(&self) -> usize
fn get_vertex(&self, index: usize) -> Option<OPoint<T, U3>>
fn compute_plane(&self) -> Option<Plane<T>>where
T: Real,
fn compute_half_space(&self) -> Option<HalfSpace<T>>where
T: Real,
Source§fn compute_area_vector(&self) -> Vector3<T>where
T: Real,
fn compute_area_vector(&self) -> Vector3<T>where
T: Real,
Computes a vector normal to the polygon (oriented outwards w.r.t. a counter-clockwise
orientation), whose absolute magnitude is the area of the polygon. Read more
Source§fn compute_normal(&self) -> Vector3<T>where
T: Real,
fn compute_normal(&self) -> Vector3<T>where
T: Real,
Computes an outwards-facing normalized vector perpendicular to the polygon.
fn closest_point(&self, point: &Point3<T>) -> PolygonClosestPoint<T, U3>where
T: Real,
Auto Trait Implementations§
impl<'a, T, D> Freeze for PolyMeshFace<'a, T, D>where
DefaultAllocator: Sized,
impl<'a, T, D> !RefUnwindSafe for PolyMeshFace<'a, T, D>
impl<'a, T, D> !Send for PolyMeshFace<'a, T, D>
impl<'a, T, D> !Sync for PolyMeshFace<'a, T, D>
impl<'a, T, D> Unpin for PolyMeshFace<'a, T, D>where
DefaultAllocator: Sized,
impl<'a, T, D> !UnwindSafe for PolyMeshFace<'a, T, D>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.