pub trait TransformObject: Sized {
    fn transform(self, transform: &Transform, stores: &Stores) -> Self;

    fn translate(self, offset: impl Into<Vector<3>>, stores: &Stores) -> Self { ... }
    fn rotate(self, axis_angle: impl Into<Vector<3>>, stores: &Stores) -> Self { ... }
}
Expand description

Transform an object

Implementation Note

So far, a general transform method is available, along some convenience methods for more specific transformations.

More convenience methods can be added as required. The only reason this hasn’t been done so far, is that no one has put in the work yet.

Required Methods

Transform the object

Provided Methods

Translate the object

Convenience wrapper around TransformObject::transform.

Rotate the object

Convenience wrapper around TransformObject::transform.

Implementors