pub trait Transform:
Translate
+ 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§
Sourcefn transform(self, trans: Transformation) -> Self
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.