MatScale

Type Alias MatScale 

Source
pub type MatScale<E> = Matrix<Scale<E>>;
Expand description

Wrapper around a scalar value that allows scalar multiplication by matrices.

Aliased Type§

pub struct MatScale<E> { /* private fields */ }

Implementations§

Source§

impl<E: Entity> MatScale<E>

Source

pub fn new(value: E) -> Self

Returns a new scaling factor with the given value.

Source

pub fn value(self) -> E

Returns the value of the scaling factor.