pub trait Transformable:
Movable
+ Rotable
+ Scalable {
// Required methods
fn contain<T>(&self, offset: Vector<T>) -> bool
where T: Scalar + Into<f32>;
fn set_origin<T>(&mut self, origin: Vector<T>)
where T: Scalar + Into<f32>;
fn get_origin(&self) -> Vector<f32>;
}
Expand description
A trait that define something fully transformable.
Required Methods§
Sourcefn set_origin<T>(&mut self, origin: Vector<T>)
fn set_origin<T>(&mut self, origin: Vector<T>)
Set the origin of the object.
Sourcefn get_origin(&self) -> Vector<f32>
fn get_origin(&self) -> Vector<f32>
Get the origin of the transformable.
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.