pub type Scale = Position;

Aliased Type§

struct Scale(pub f32, pub f32);

Fields§

§0: f32§1: f32

Trait Implementations§

source§

impl Add<Position> for Position

§

type Output = Position

The resulting type after applying the + operator.
source§

fn add(self, other: Self) -> Self

Performs the + operation. Read more
source§

impl Clone for Position

source§

fn clone(&self) -> Position

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Curved for Position

source§

fn zero() -> Self

source§

fn one() -> Self

source§

fn negate(&self) -> Self

source§

fn scale(&self, value: Scalar) -> Self

source§

fn inverse_scale(&self, value: Scalar) -> Self

source§

fn length(&self) -> Scalar

source§

fn length_squared(&self) -> Scalar

source§

fn get_axis(&self, index: usize) -> Option<Scalar>

source§

fn interpolate(&self, other: &Self, factor: Scalar) -> Self

source§

fn is_valid(&self) -> bool

source§

impl CurvedChange for Position

source§

fn offset(&self, other: &Self) -> Self

source§

fn delta(&self, other: &Self) -> Self

source§

fn dot(&self, other: &Self) -> Scalar

source§

impl Debug for Position

source§

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

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

impl Default for Position

source§

fn default() -> Position

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

impl<'de> Deserialize<'de> for Position

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<[f32; 2]> for Position

source§

fn from(value: [Scalar; 2]) -> Self

Converts to this type from the input type.
source§

impl From<(f32, f32)> for Position

source§

fn from(value: (Scalar, Scalar)) -> Self

Converts to this type from the input type.
source§

impl Mul<f32> for Position

§

type Output = Position

The resulting type after applying the * operator.
source§

fn mul(self, other: Scalar) -> Self

Performs the * operation. Read more
source§

impl Serialize for Position

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Sub<Position> for Position

§

type Output = Position

The resulting type after applying the - operator.
source§

fn sub(self, other: Self) -> Self

Performs the - operation. Read more
source§

impl Copy for Position