[−][src]Struct mgf::Moving
A geometry swept accross a given path of motion.
Methods
impl<T: Copy + Clone + Shape> Moving<T>
[src]
impl<T: Shape> Moving<T>
[src]
Trait Implementations
impl<T: Shape> AsMut<T> for Moving<T>
[src]
impl<T: Shape> AsRef<T> for Moving<T>
[src]
impl<B: Bound, T: Copy + Clone + Shape + BoundedBy<B>> BoundedBy<B> for Moving<T>
[src]
fn bounds(&self) -> B
[src]
The bounds for a swept object is the bounds extended in the direction and magnitude of the velocity.
impl<T: Clone + Shape> Clone for Moving<T>
[src]
impl<Recv, Arg> Contacts<Arg> for Moving<Recv> where
Arg: Shape + Copy,
Recv: Contacts<Moving<Arg>> + Shape,
[src]
Arg: Shape + Copy,
Recv: Contacts<Moving<Arg>> + Shape,
fn contacts<F: FnMut(Contact)>(&self, rhs: &Arg, callback: F) -> bool
[src]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl<Recv, Arg> Contacts<Moving<Arg>> for Moving<Recv> where
Recv: Contacts<Moving<Arg>> + Shape + Copy,
Arg: Shape + Copy,
[src]
Recv: Contacts<Moving<Arg>> + Shape + Copy,
Arg: Shape + Copy,
Any two moving object collision can be reduced to a one moving one static object collision. This is done by finding the relative velocity between the two objects.
fn contacts<F: FnMut(Contact)>(&self, rhs: &Moving<Arg>, callback: F) -> bool
[src]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Moving<Capsule>> for Plane
[src]
fn contacts<F: FnMut(Contact)>(
&self,
capsule: &Moving<Capsule>,
callback: F
) -> bool
[src]
&self,
capsule: &Moving<Capsule>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl<Poly: Polygon> Contacts<Moving<Capsule>> for Poly
[src]
Colliding a moving capsule with a single-faced polygon can potentially produce multiple contacts depending on the angle between the capsule's length and the normal of the polygon's face.
fn contacts<F: FnMut(Contact)>(
&self,
capsule: &Moving<Capsule>,
callback: F
) -> bool
[src]
&self,
capsule: &Moving<Capsule>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Moving<Capsule>> for Sphere
[src]
fn contacts<F: FnMut(Contact)>(
&self,
rhs: &Moving<Capsule>,
callback: F
) -> bool
[src]
&self,
rhs: &Moving<Capsule>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Moving<Capsule>> for Capsule
[src]
fn contacts<F: FnMut(Contact)>(
&self,
capsule: &Moving<Capsule>,
callback: F
) -> bool
[src]
&self,
capsule: &Moving<Capsule>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Moving<Component>> for Plane
[src]
fn contacts<F: FnMut(Contact)>(
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
[src]
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Moving<Component>> for Triangle
[src]
fn contacts<F: FnMut(Contact)>(
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
[src]
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Moving<Component>> for Rectangle
[src]
fn contacts<F: FnMut(Contact)>(
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
[src]
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Moving<Component>> for Sphere
[src]
fn contacts<F: FnMut(Contact)>(
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
[src]
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Moving<Component>> for Capsule
[src]
fn contacts<F: FnMut(Contact)>(
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
[src]
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Moving<Sphere>> for Plane
[src]
fn contacts<F: FnMut(Contact)>(
&self,
sphere: &Moving<Sphere>,
callback: F
) -> bool
[src]
&self,
sphere: &Moving<Sphere>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl<Poly: Polygon> Contacts<Moving<Sphere>> for Poly
[src]
fn contacts<F: FnMut(Contact)>(
&self,
sphere: &Moving<Sphere>,
callback: F
) -> bool
[src]
&self,
sphere: &Moving<Sphere>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Moving<Sphere>> for Sphere
[src]
fn contacts<F: FnMut(Contact)>(
&self,
sphere: &Moving<Sphere>,
callback: F
) -> bool
[src]
&self,
sphere: &Moving<Sphere>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Moving<Sphere>> for Capsule
[src]
fn contacts<F: FnMut(Contact)>(
&self,
sphere: &Moving<Sphere>,
callback: F
) -> bool
[src]
&self,
sphere: &Moving<Sphere>,
callback: F
) -> bool
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Plane> for Moving<Sphere>
[src]
fn contacts<F: FnMut(Contact)>(&self, rhs: &Plane, callback: F) -> bool
[src]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Plane> for Moving<Capsule>
[src]
fn contacts<F: FnMut(Contact)>(&self, rhs: &Plane, callback: F) -> bool
[src]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl<RHS> Contacts<RHS> for Moving<Component> where
RHS: Contacts<Moving<Sphere>> + Contacts<Moving<Capsule>>,
[src]
RHS: Contacts<Moving<Sphere>> + Contacts<Moving<Capsule>>,
fn contacts<F: FnMut(Contact)>(&self, rhs: &RHS, callback: F) -> bool
[src]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Rectangle> for Moving<Sphere>
[src]
fn contacts<F: FnMut(Contact)>(&self, rhs: &Rectangle, callback: F) -> bool
[src]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Rectangle> for Moving<Capsule>
[src]
fn contacts<F: FnMut(Contact)>(&self, rhs: &Rectangle, callback: F) -> bool
[src]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Triangle> for Moving<Sphere>
[src]
fn contacts<F: FnMut(Contact)>(&self, rhs: &Triangle, callback: F) -> bool
[src]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl Contacts<Triangle> for Moving<Capsule>
[src]
fn contacts<F: FnMut(Contact)>(&self, rhs: &Triangle, callback: F) -> bool
[src]
fn last_contact(&self, rhs: &RHS) -> Option<Contact>
[src]
impl<T: Copy + Shape> Copy for Moving<T>
[src]
impl<T: Debug + Shape> Debug for Moving<T>
[src]
impl<T: Shape> Delta for Moving<T>
[src]
impl<'de, T: Shape> Deserialize<'de> for Moving<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<Moving<Sphere>> for Capsule
[src]
impl<P: Particle> Intersects<Moving<Sphere>> for P
[src]
fn intersection(&self, s: &Moving<Sphere>) -> Option<Intersection>
[src]
impl<Recv, Arg> LocalContacts<Arg> for Moving<Recv> where
Recv: Shape + Copy,
Arg: Contacts<Moving<Recv>> + Shape,
[src]
Recv: Shape + Copy,
Arg: Contacts<Moving<Recv>> + Shape,
fn local_contacts<F: FnMut(LocalContact)>(&self, rhs: &Arg, callback: F) -> bool
[src]
fn last_local_contact(&self, rhs: &RHS) -> Option<LocalContact>
[src]
impl<Recv, Arg> LocalContacts<Moving<Arg>> for Recv where
Recv: Contacts<Moving<Arg>> + Shape,
Arg: Shape + Copy,
[src]
Recv: Contacts<Moving<Arg>> + Shape,
Arg: Shape + Copy,
fn local_contacts<F: FnMut(LocalContact)>(
&self,
rhs: &Moving<Arg>,
callback: F
) -> bool
[src]
&self,
rhs: &Moving<Arg>,
callback: F
) -> bool
fn last_local_contact(&self, rhs: &RHS) -> Option<LocalContact>
[src]
impl<Recv, Arg> LocalContacts<Moving<Arg>> for Moving<Recv> where
Recv: Contacts<Moving<Arg>> + Shape + Copy,
Arg: Shape + Copy,
[src]
Recv: Contacts<Moving<Arg>> + Shape + Copy,
Arg: Shape + Copy,
fn local_contacts<F: FnMut(LocalContact)>(
&self,
rhs: &Moving<Arg>,
callback: F
) -> bool
[src]
&self,
rhs: &Moving<Arg>,
callback: F
) -> bool
fn last_local_contact(&self, rhs: &RHS) -> Option<LocalContact>
[src]
impl LocalContacts<Moving<Component>> for Moving<Component>
[src]
fn local_contacts<F: FnMut(LocalContact)>(
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
[src]
&self,
rhs: &Moving<Component>,
callback: F
) -> bool
fn last_local_contact(&self, rhs: &RHS) -> Option<LocalContact>
[src]
impl<T: Shape> Serialize for Moving<T> where
T: Serialize,
[src]
T: Serialize,
Auto Trait Implementations
impl<T> RefUnwindSafe for Moving<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Moving<T> where
T: Send,
T: Send,
impl<T> Sync for Moving<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Moving<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Moving<T> where
T: UnwindSafe,
T: UnwindSafe,
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> 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, 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>,