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

pub trait Rotated<T> where
    Self: Sized
{ 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

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.

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

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

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

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

Loading content...

Implementors

impl<S, T: BaseFloat> Rotated<T> for S where
    S: Rotate<T> + Sized
[src]

Loading content...