Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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