Skip to main content

ScaleTransform

Trait ScaleTransform 

Source
pub trait ScaleTransform {
    // Required method
    fn scale(&mut self, scale: DVec3) -> &mut Self;
}
Expand description

Scaling operations: the axis-aligned (diagonal group) scaling action.

This trait is blanket-implemented for all T: ApplyTransform<Diag> (see super::ApplyTransform). For uniform scaling of similarity-closure types, see super::UniformScaleTransform.

Required Methods§

Source

fn scale(&mut self, scale: DVec3) -> &mut Self

Scale at the origin.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T> ScaleTransform for VisualizeAabbItem<T>
where T: Aabb + ScaleTransform,

Source§

fn scale(&mut self, scale: DVec3) -> &mut VisualizeAabbItem<T>

Implementors§

Source§

impl<T> ScaleTransform for T
where T: ApplyTransform<Diag> + ?Sized,