[−][src]Struct ncollide_geometry::query::algorithms::JohnsonSimplex
Simplex using the Johnson subalgorithm to compute the projection of the origin on the simplex.
Methods
impl<P: Point> JohnsonSimplex<P>
[src]
pub fn new(recursion: Arc<Vec<JohnsonSimplexTemplate>>) -> JohnsonSimplex<P>
[src]
Creates a new, empty, Johnson simplex.
pub fn new_w_tls() -> JohnsonSimplex<P>
[src]
Creates a new, empty Johnson simplex. The recursion template uses the thread-local one.
Trait Implementations
impl<P: Point> Simplex<P> for JohnsonSimplex<P>
[src]
fn reset(&mut self, pt: P)
[src]
fn dimension(&self) -> usize
[src]
fn max_sq_len(&self) -> P::Real
[src]
fn contains_point(&self, pt: &P) -> bool
[src]
fn add_point(&mut self, pt: P) -> bool
[src]
fn point(&self, i: usize) -> P
[src]
fn project_origin_and_reduce(&mut self) -> P
[src]
fn project_origin(&mut self) -> P
[src]
fn modify_pnts(&mut self, f: &dyn Fn(&mut P))
[src]
impl<P: Clone + Point> Clone for JohnsonSimplex<P> where
P::Real: Clone,
[src]
P::Real: Clone,
fn clone(&self) -> JohnsonSimplex<P>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<P> Send for JohnsonSimplex<P> where
<P as EuclideanSpace>::Real: Send,
<P as EuclideanSpace>::Real: Send,
impl<P> Sync for JohnsonSimplex<P> where
<P as EuclideanSpace>::Real: Sync,
<P as EuclideanSpace>::Real: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Same for T
type Output = T
Should always be Self