substrate::geometry::transform

Trait Transform

Source
pub trait Transform:
    Sized
    + Translate
    + TransformMut {
    // Provided method
    fn transform(self, trans: Transformation) -> Self { ... }
}
Expand description

A trait for specifying how an object is changed by a Transformation.

Takes in an owned copy of the shape and returns the transformed version.

Provided Methods§

Source

fn transform(self, trans: Transformation) -> Self

Applies matrix-vector Transformation trans.

Creates a new shape at a location equal to the transformation of the original.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Transform for T
where T: TransformMut,