Struct EPA3

Source
pub struct EPA3<S> { /* private fields */ }
Expand description

EPA algorithm implementation for 3D. Only to be used in GJK.

Trait Implementations§

Source§

impl<S: Debug> Debug for EPA3<S>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<S> EPA for EPA3<S>
where S: BaseFloat,

Source§

type Point = Point3<S>

Point type
Source§

fn process<SL, SR, TL, TR>( &self, simplex: &mut Vec<SupportPoint<Point3<S>>>, left: &SL, left_transform: &TL, right: &SR, right_transform: &TR, ) -> Option<Contact<Point3<S>>>
where SL: Primitive<Point = Self::Point>, SR: Primitive<Point = Self::Point>, TL: Transform<Self::Point>, TR: Transform<Self::Point>,

Process the given simplex, and compute the contact point. Read more
Source§

fn new() -> Self

Create a new EPA instance
Source§

fn new_with_tolerance( tolerance: <Self::Point as EuclideanSpace>::Scalar, max_iterations: u32, ) -> Self

Create a new EPA instance with the given tolerance

Auto Trait Implementations§

§

impl<S> Freeze for EPA3<S>
where S: Freeze,

§

impl<S> RefUnwindSafe for EPA3<S>
where S: RefUnwindSafe,

§

impl<S> Send for EPA3<S>
where S: Send,

§

impl<S> Sync for EPA3<S>
where S: Sync,

§

impl<S> Unpin for EPA3<S>
where S: Unpin,

§

impl<S> UnwindSafe for EPA3<S>
where S: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.