Trait fj_kernel::algorithms::transform::TransformObject
source · pub trait TransformObject: Sized {
fn transform(
self,
transform: &Transform,
objects: &mut Service<Objects>
) -> Self;
fn translate(
self,
offset: impl Into<Vector<3>>,
objects: &mut Service<Objects>
) -> Self { ... }
fn rotate(
self,
axis_angle: impl Into<Vector<3>>,
objects: &mut Service<Objects>
) -> 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.