pub trait Transform: TransformMut + Sized {
    // 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.

Object Safety§

This trait is not object safe.

Implementors§