[−][src]Struct c2::ToiRunner
A builder for finding the time of impact for two shapes
Implementations
impl<'a, ShapeA, ShapeB> ToiRunner<'a, ShapeA, ShapeB> where
ShapeA: Shape,
ShapeB: Shape,
[src]
ShapeA: Shape,
ShapeB: Shape,
pub fn new(a: &'a ShapeA, b: &'a ShapeB) -> ToiRunner<'a, ShapeA, ShapeB>
[src]
pub fn set_velocities(
self,
a_velocity: Vec2,
b_velocity: Vec2
) -> ToiRunner<'a, ShapeA, ShapeB>
[src]
self,
a_velocity: Vec2,
b_velocity: Vec2
) -> ToiRunner<'a, ShapeA, ShapeB>
pub fn use_radius(self, use_radius: bool) -> ToiRunner<'a, ShapeA, ShapeB>
[src]
pub fn set_iterations(
self,
iterations: &'a mut i32
) -> ToiRunner<'a, ShapeA, ShapeB>
[src]
self,
iterations: &'a mut i32
) -> ToiRunner<'a, ShapeA, ShapeB>
pub fn run(self) -> f32
[src]
Auto Trait Implementations
impl<'a, ShapeA, ShapeB> RefUnwindSafe for ToiRunner<'a, ShapeA, ShapeB> where
ShapeA: RefUnwindSafe,
ShapeB: RefUnwindSafe,
ShapeA: RefUnwindSafe,
ShapeB: RefUnwindSafe,
impl<'a, ShapeA, ShapeB> Send for ToiRunner<'a, ShapeA, ShapeB> where
ShapeA: Sync,
ShapeB: Sync,
ShapeA: Sync,
ShapeB: Sync,
impl<'a, ShapeA, ShapeB> Sync for ToiRunner<'a, ShapeA, ShapeB> where
ShapeA: Sync,
ShapeB: Sync,
ShapeA: Sync,
ShapeB: Sync,
impl<'a, ShapeA, ShapeB> Unpin for ToiRunner<'a, ShapeA, ShapeB>
impl<'a, ShapeA, ShapeB> !UnwindSafe for ToiRunner<'a, ShapeA, ShapeB>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,