Trait meshx::ops::transform::Rotated

source ·
pub trait Rotated<T>
where Self: Sized,
{ // Required methods fn rotated(self, u: [T; 3], theta: T) -> Self; fn rotated_by_matrix(self, mtx: [[T; 3]; 3]) -> Self; fn rotated_by_vector(self, e: [T; 3]) -> Self; }

Required Methods§

source

fn rotated(self, u: [T; 3], theta: T) -> Self

Return a version of self rotated about the unit vector u by the given angle theta (in radians).

Note that it is assumed that u is indeed a unit vector, no further normalization should be performed.

source

fn rotated_by_matrix(self, mtx: [[T; 3]; 3]) -> Self

Return a version of self rotated using the given column-major rotation matrix

source

fn rotated_by_vector(self, e: [T; 3]) -> Self

Return a version of self rotated about the Euler vector e.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<S, T: RealField> Rotated<T> for S
where S: Rotate<T> + Sized,