Struct spectra::scene::scale::Scale
[−]
[src]
pub struct Scale { pub x: f32, pub y: f32, pub z: f32, }
Arbritrary scale.
Fields
x: f32
y: f32
z: f32
Methods
impl Scale
[src]
pub fn new(x: f32, y: f32, z: f32) -> Self
[src]
Arbitrary scale along the X, Y and Z axis.
pub fn uni(x: f32) -> Self
[src]
Uniform scale along the X, Y and Z axis.
Trait Implementations
impl SplineDeserializerAdapter for Scale
[src]
type Deserialized = [f32; 3]
fn from_deserialized(de: Self::Deserialized) -> Self
[src]
impl Interpolate for Scale
[src]
fn lerp(a: Self, b: Self, t: Time) -> Self
[src]
Linear interpolation.
fn cubic_hermite(
_: (Self, Time),
a: (Self, Time),
b: (Self, Time),
_: (Self, Time),
t: Time
) -> Self
[src]
_: (Self, Time),
a: (Self, Time),
b: (Self, Time),
_: (Self, Time),
t: Time
) -> Self
Cubic hermite interpolation. Read more
impl Clone for Scale
[src]
fn clone(&self) -> Scale
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Scale
[src]
impl Debug for Scale
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Scale
[src]
fn eq(&self, __arg_0: &Scale) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Scale) -> bool
[src]
This method tests for !=
.
impl Default for Scale
[src]
impl From<[f32; 3]> for Scale
[src]
impl From<Scale> for [f32; 3]
[src]
impl From<Scale> for M44<f32>
[src]
impl Transformable for Scale
[src]
impl Mul for Scale
[src]
type Output = Scale
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self::Output
[src]
Performs the *
operation.