Trait fj_kernel::algorithms::transform::TransformObject
source · [−]pub trait TransformObject: Sized {
type Transformed;
fn transform(
self,
transform: &Transform,
stores: &Stores
) -> Self::Transformed;
fn translate(
self,
offset: impl Into<Vector<3>>,
stores: &Stores
) -> Self::Transformed { ... }
fn rotate(
self,
axis_angle: impl Into<Vector<3>>,
stores: &Stores
) -> Self::Transformed { ... }
}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 Associated Types
sourcetype Transformed
type Transformed
The type of the transformed object
Implementation Note
This type is temporary, while we transition to a global object store. It should be removed, once that transition is complete.
Required Methods
sourcefn transform(self, transform: &Transform, stores: &Stores) -> Self::Transformed
fn transform(self, transform: &Transform, stores: &Stores) -> Self::Transformed
Transform the object
Provided Methods
Translate the object