pub enum HandleMotion {
Linear {
direction: [f64; 3],
arg: ArgPath,
value: f64,
scale: f64,
},
Planar {
u: [f64; 3],
v: [f64; 3],
x: ArgPath,
y: ArgPath,
value: [f64; 2],
},
}Expand description
How a handle moves, and how that maps onto its step’s arguments.
Variants§
Linear
Slides along the unit vector direction: moving it by d world
units changes the number at arg, now value, by d / scale.
Planar
Slides in the plane of the unit vectors u and v: moving it by
a u + b v changes the numbers at x and y, now value, by a
and b.
Trait Implementations§
Source§impl Clone for HandleMotion
impl Clone for HandleMotion
Source§fn clone(&self) -> HandleMotion
fn clone(&self) -> HandleMotion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HandleMotion
impl Debug for HandleMotion
Source§impl PartialEq for HandleMotion
impl PartialEq for HandleMotion
Source§fn eq(&self, other: &HandleMotion) -> bool
fn eq(&self, other: &HandleMotion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HandleMotion
impl Serialize for HandleMotion
impl StructuralPartialEq for HandleMotion
Auto Trait Implementations§
impl Freeze for HandleMotion
impl RefUnwindSafe for HandleMotion
impl Send for HandleMotion
impl Sync for HandleMotion
impl Unpin for HandleMotion
impl UnsafeUnpin for HandleMotion
impl UnwindSafe for HandleMotion
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more