Trait fj::syntax::Transform

source ·
pub trait Transform {
    fn rotate(&self, axis: [f64; 3], angle: Angle) -> Transform;
    fn translate(&self, offset: [f64; 3]) -> Transform;
}
Expand description

Convenient syntax to create an fj::Transform

Required Methods

Create a rotation

Create a rotation that rotates shape by angle around an axis defined by axis.

Create a translation

Create a translation that translates shape by offset.

Implementors