Struct rhusics_core::BodyPose

source ·
pub struct BodyPose<P, R> { /* private fields */ }
Expand description

Transform component used throughout the library

Implementations

Clear the dirty flag

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Interpolate between self and other, using amount to calculate how much of other to use. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Create a new BodyPose with initial state given by the supplied position and rotation.

Set the rotation. Will also compute the inverse rotation. Sets the dirty flag.

Set the position. Sets the dirty flag.

Borrows the rotation attribute

Borrows the position attribute

Create an identity transformation. That is, a transformation which does nothing. Read more
Create a transformation that rotates a vector to look at center from eye, using up for orientation. Read more
Transform a vector using this transform.
Inverse transform a vector using this transform
Transform a point using this transform.
Combine this transform with another, yielding a new transformation which has the effects of both. Read more
Create a transform that “un-does” this one.
Combine this transform with another, in-place.
Interpolate between self and other, using amount to calculate how much of other to use. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.