Type Alias anim8::Scalar

source ·
pub type Scalar = f32;
Expand description

Scalar number type.

by default it is 32-bit flaot but you can change it to 64-bit float with scalar64 feature.

Trait Implementations§

source§

impl Curved for Scalar

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§

fn normalize(&self) -> Self
where Self: Sized,