Trait fj::syntax::Transform

source ·
pub trait Transform {
    // Required methods
    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§

source

fn rotate(&self, axis: [f64; 3], angle: Angle) -> Transform

Create a rotation

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

source

fn translate(&self, offset: [f64; 3]) -> Transform

Create a translation

Create a translation that translates shape by offset.

Implementors§

source§

impl<T> Transform for Twhere T: Clone + Into<Shape>,