Type Alias Rotate

Source
pub type Rotate = GenericRotate<Number, Angle>;
Expand description

A computed CSS rotate

Aliased Type§

#[repr(C, u8)]
pub enum Rotate { None, Rotate(Angle), Rotate3D(f32, f32, f32, Angle), }

Variants§

§

None

‘none’

§

Rotate(Angle)

§

Rotate3D(f32, f32, f32, Angle)

{3}

Implementations§

Trait Implementations§

Source§

impl Animate for Rotate

Source§

fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()>

Animate a value towards another one, given an animation procedure.
Source§

impl ComputeSquaredDistance for Rotate

Source§

fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>

Computes the squared distance between two animatable values.