Trait gut::ops::transform::Rotated[][src]

pub trait Rotated<T> {
    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

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.

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

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

Implementors