pub struct Position(pub Scalar, pub Scalar);Tuple Fields§
§0: Scalar§1: ScalarTrait Implementations§
Source§impl Curved for Position
impl Curved for Position
fn zero() -> Self
fn one() -> Self
fn negate(&self) -> Self
fn scale(&self, value: Scalar) -> Self
fn inverse_scale(&self, value: Scalar) -> Self
fn length(&self) -> Scalar
fn length_squared(&self) -> Scalar
fn get_axis(&self, index: usize) -> Option<Scalar>
fn interpolate(&self, other: &Self, factor: Scalar) -> Self
fn is_valid(&self) -> bool
Source§impl CurvedChange for Position
impl CurvedChange for Position
Source§impl<'de> Deserialize<'de> for Position
impl<'de> Deserialize<'de> for Position
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 Copy for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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