pub struct CircularCone<T: RealField + Copy, const D: usize> { /* private fields */ }Expand description
A circular cone projection
Implementations§
Source§impl<T: RealField + Copy, const D: usize> CircularCone<T, D>
impl<T: RealField + Copy, const D: usize> CircularCone<T, D>
Sourcepub fn new() -> CircularCone<T, D>
pub fn new() -> CircularCone<T, D>
Create a new CircularCone projector with default values.
Sourcepub fn axis(self, axis: impl Into<SVector<T, D>>) -> Self
pub fn axis(self, axis: impl Into<SVector<T, D>>) -> Self
Set the axis along the center of the cone.
Sourcepub fn mut_axis(&mut self, axis: impl Into<SVector<T, D>>)
pub fn mut_axis(&mut self, axis: impl Into<SVector<T, D>>)
Set the axis along the center of the cone.
Sourcepub fn vertex(self, vertex: impl Into<SVector<T, D>>) -> Self
pub fn vertex(self, vertex: impl Into<SVector<T, D>>) -> Self
Set the coordinate of the cones vertex / tip.
Sourcepub fn mut_vertex(&mut self, vertex: impl Into<SVector<T, D>>)
pub fn mut_vertex(&mut self, vertex: impl Into<SVector<T, D>>)
Set the coordinate of the cones vertex / tip.
Trait Implementations§
Source§impl<T: Clone + RealField + Copy, const D: usize> Clone for CircularCone<T, D>
impl<T: Clone + RealField + Copy, const D: usize> Clone for CircularCone<T, D>
Source§fn clone(&self) -> CircularCone<T, D>
fn clone(&self) -> CircularCone<T, D>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: RealField + Copy, const D: usize> ProjectSingle<T, D> for CircularCone<T, D>
impl<T: RealField + Copy, const D: usize> ProjectSingle<T, D> for CircularCone<T, D>
Source§fn project_single(&self, point: SVectorViewMut<'_, T, D>)
fn project_single(&self, point: SVectorViewMut<'_, T, D>)
Apply the projection to a single point.
Auto Trait Implementations§
impl<T, const D: usize> Freeze for CircularCone<T, D>where
T: Freeze,
impl<T, const D: usize> RefUnwindSafe for CircularCone<T, D>where
T: RefUnwindSafe,
impl<T, const D: usize> Send for CircularCone<T, D>
impl<T, const D: usize> Sync for CircularCone<T, D>
impl<T, const D: usize> Unpin for CircularCone<T, D>where
T: Unpin,
impl<T, const D: usize> UnwindSafe for CircularCone<T, D>where
T: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<P, T, const D: usize> ProjectSingleExt<T, D> for P
impl<P, T, const D: usize> ProjectSingleExt<T, D> for P
Source§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.