Skip to main content

SingleChangeSet

Struct SingleChangeSet 

Source
pub struct SingleChangeSet<B, P, R, A>
where P: EuclideanSpace, P::Scalar: BaseFloat, R: Rotation<P>, A: Clone, B: Pose<P, R>,
{ /* private fields */ }
Expand description

Changes computed from contact resolution.

Optionally contains the new pose and/or velocity of a body after contact resolution.

§Type parameters:

  • B: Transform type (BodyPose3 or similar)
  • P: Point type, usually Point2 or Point3
  • R: Rotational quantity, usually Basis2 or Quaternion
  • A: Angular velocity, usually Scalar or Vector3

Implementations§

Source§

impl<B, P, R, A> SingleChangeSet<B, P, R, A>
where P: EuclideanSpace, P::Scalar: BaseFloat, R: Rotation<P>, A: Clone, B: Pose<P, R>,

Source

pub fn apply( self, pose: Option<&mut NextFrame<B>>, velocity: Option<&mut NextFrame<Velocity<P::Diff, A>>>, )

Apply any changes to the next frame pose and/or velocity

Trait Implementations§

Source§

impl<B, P, R, A> Debug for SingleChangeSet<B, P, R, A>
where P: EuclideanSpace + Debug, P::Scalar: BaseFloat, R: Rotation<P> + Debug, A: Clone + Debug, B: Pose<P, R> + Debug, P::Diff: Debug,

Source§

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

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

impl<B, P, R, A> Default for SingleChangeSet<B, P, R, A>
where P: EuclideanSpace, P::Scalar: BaseFloat, R: Rotation<P>, A: Clone, B: Pose<P, R>,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<B, P, R, A> PartialEq for SingleChangeSet<B, P, R, A>

Source§

fn eq(&self, other: &SingleChangeSet<B, P, R, A>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<B, P, R, A> StructuralPartialEq for SingleChangeSet<B, P, R, A>
where P: EuclideanSpace, P::Scalar: BaseFloat, R: Rotation<P>, A: Clone, B: Pose<P, R>,

Auto Trait Implementations§

§

impl<B, P, R, A> Freeze for SingleChangeSet<B, P, R, A>
where <P as EuclideanSpace>::Scalar: Sized, B: Freeze, <P as EuclideanSpace>::Diff: Freeze, A: Freeze,

§

impl<B, P, R, A> RefUnwindSafe for SingleChangeSet<B, P, R, A>

§

impl<B, P, R, A> Send for SingleChangeSet<B, P, R, A>
where <P as EuclideanSpace>::Scalar: Sized, B: Send, P: Send, R: Send, <P as EuclideanSpace>::Diff: Send, A: Send,

§

impl<B, P, R, A> Sync for SingleChangeSet<B, P, R, A>
where <P as EuclideanSpace>::Scalar: Sized, B: Sync, P: Sync, R: Sync, <P as EuclideanSpace>::Diff: Sync, A: Sync,

§

impl<B, P, R, A> Unpin for SingleChangeSet<B, P, R, A>
where <P as EuclideanSpace>::Scalar: Sized, B: Unpin, P: Unpin, R: Unpin, <P as EuclideanSpace>::Diff: Unpin, A: Unpin,

§

impl<B, P, R, A> UnsafeUnpin for SingleChangeSet<B, P, R, A>

§

impl<B, P, R, A> UnwindSafe for SingleChangeSet<B, P, R, A>

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.