[][src]Trait gut::ops::transform::Scale

pub trait Scale<T: Copy> {
    fn scale(&mut self, s: [T; 3]);

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

Required methods

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.

Loading content...

Provided methods

fn uniform_scale(&mut self, s: T)

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

Loading content...

Implementors

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

fn scale(&mut self, [x, y, z]: [T; 3])[src]

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

Loading content...