Skip to main content

CanScaleNonUniform

Trait CanScaleNonUniform 

Source
pub trait CanScaleNonUniform: GeometricPrimitive + Sized {
    type ScaleVector: CoordinatePrimitive;

    // Required method
    fn scale_non_uniform(&mut self, factors: &Self::ScaleVector);
}
Expand description

Applies non-uniform scaling using a separate scale vector.

Required Associated Types§

Source

type ScaleVector: CoordinatePrimitive

Primitive used to represent non-uniform scale factors.

Required Methods§

Source

fn scale_non_uniform(&mut self, factors: &Self::ScaleVector)

Applies non-uniform scaling in place.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§