[][src]Struct c2::GjkRunner

pub struct GjkRunner<'a, ShapeA, ShapeB> { /* fields omitted */ }

A builder for running the GJK algorithm

Implementations

impl<'a, ShapeA, ShapeB> GjkRunner<'a, ShapeA, ShapeB> where
    ShapeA: Shape,
    ShapeB: Shape
[src]

pub fn new(a: &'a ShapeA, b: &'a ShapeB) -> GjkRunner<'a, ShapeA, ShapeB>[src]

pub fn use_radius(self, use_radius: bool) -> GjkRunner<'a, ShapeA, ShapeB>[src]

pub fn set_cache(self, cache: &'a mut GjkCache) -> GjkRunner<'a, ShapeA, ShapeB>[src]

pub fn set_iterations(
    self,
    iterations: &'a mut i32
) -> GjkRunner<'a, ShapeA, ShapeB>
[src]

pub fn run(self) -> GjkResponse[src]

Finds the closest pair between two shapes

Auto Trait Implementations

impl<'a, ShapeA, ShapeB> RefUnwindSafe for GjkRunner<'a, ShapeA, ShapeB> where
    ShapeA: RefUnwindSafe,
    ShapeB: RefUnwindSafe

impl<'a, ShapeA, ShapeB> Send for GjkRunner<'a, ShapeA, ShapeB> where
    ShapeA: Sync,
    ShapeB: Sync

impl<'a, ShapeA, ShapeB> Sync for GjkRunner<'a, ShapeA, ShapeB> where
    ShapeA: Sync,
    ShapeB: Sync

impl<'a, ShapeA, ShapeB> Unpin for GjkRunner<'a, ShapeA, ShapeB>

impl<'a, ShapeA, ShapeB> !UnwindSafe for GjkRunner<'a, ShapeA, ShapeB>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.