Trait meshx::ops::transform::Scale

source ·
pub trait Scale<T: Clone> {
    // Required method
    fn scale(&mut self, s: [T; 3]);

    // Provided method
    fn uniform_scale(&mut self, s: T) { ... }
}

Required Methods§

source

fn scale(&mut self, s: [T; 3])

Scale the given object in 3D by a given vector of scale factors. s = [1.0; 3] corresponds to a noop.

Provided Methods§

source

fn uniform_scale(&mut self, s: T)

Uniformly scale the given object by the given factor in all dimensions.

Implementors§

source§

impl<T: RealField, M: VertexPositions<Element = [T; 3]>> Scale<T> for M