pub enum Motion {
Turn,
Slide,
SlideX,
SlideY,
}Expand description
One of the ways a joint may let its second frame move on its first:
turning about the first frame’s z axis, or sliding along its z, x
or y axis. Each it frees is a coordinate of the joint, called as
it serializes (Motion::name).
Variants§
Implementations§
Source§impl Motion
impl Motion
pub const ALL: [Motion; 4]
Sourcepub fn index(self) -> usize
pub fn index(self) -> usize
Its place in Motion::ALL: what a joint’s coordinates and limits
are indexed by.
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
What its coordinate is called: angle (in degrees), distance —
along the axis — x, y.
Sourcepub fn natural(self, value: D) -> GeopResult<D>
pub fn natural(self, value: D) -> GeopResult<D>
A coordinate of it in its natural units — radians for an angle, given in degrees; a length for a distance.
Trait Implementations§
impl Copy for Motion
Source§impl<'de> Deserialize<'de> for Motion
impl<'de> Deserialize<'de> for Motion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Motion
Source§impl Ord for Motion
impl Ord for Motion
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Motion
impl PartialOrd for Motion
impl StructuralPartialEq for Motion
Auto Trait Implementations§
impl Freeze for Motion
impl RefUnwindSafe for Motion
impl Send for Motion
impl Sync for Motion
impl Unpin for Motion
impl UnsafeUnpin for Motion
impl UnwindSafe for Motion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.