[src]

Struct nalgebra::structs::rot::Rot4

pub struct Rot4<N> {
    // some fields omitted
}

Four dimensional rotation matrix.

Fields

Methods

impl<N> Rot4<N>

fn submat<'r>(&'r self) -> &'r Mat4<N>

Trait Implementations

impl<N: Eq> Eq for Rot4<N>

Automatically derived.

fn eq(&self, __arg_0: &Rot4<N>) -> bool

fn ne(&self, __arg_0: &Rot4<N>) -> bool

impl<__E: Encoder, N: Encodable<__E>> Encodable<__E> for Rot4<N>

Automatically derived.

fn encode(&self, __arg_0: &mut __E)

impl<__D: Decoder, N: Decodable<__D>> Decodable<__D> for Rot4<N>

Automatically derived.

fn decode(__arg_0: &mut __D) -> Rot4<N>

impl<N: Clone> Clone for Rot4<N>

Automatically derived.

fn clone(&self) -> Rot4<N>

impl<N: DeepClone> DeepClone for Rot4<N>

Automatically derived.

fn deep_clone(&self) -> Rot4<N>

impl<N: ToStr> ToStr for Rot4<N>

Automatically derived.

fn to_str(&self) -> ~str

impl<N: IterBytes> IterBytes for Rot4<N>

Automatically derived.

fn iter_bytes(&self, __arg_0: bool, __arg_1: Cb) -> bool

impl<N: Signed> AbsoluteRotate<Vec4<N>> for Rot4<N>

fn absolute_rotate(&self, v: &Vec4<N>) -> Vec4<N>

This is the same as:

    self.rotation_matrix().absolute().rmul(v)

impl<N: Real + Num + Clone> Rotation<Vec4<N>> for Rot4<N>

fn rotation(&self) -> Vec4<N>

Gets the rotation associated with self.

fn inv_rotation(&self) -> Vec4<N>

Gets the inverse rotation associated with self.

fn append_rotation(&mut self, _: &Vec4<N>)

Appends a rotation to this object.

fn append_rotation_cpy(_: &Rot4<N>, _: &Vec4<N>) -> Rot4<N>

Appends the rotation amount to a copy of t.

fn prepend_rotation(&mut self, _: &Vec4<N>)

Prepends a rotation to this object.

fn prepend_rotation_cpy(_: &Rot4<N>, _: &Vec4<N>) -> Rot4<N>

Prepends the rotation amount to a copy of t.

fn set_rotation(&mut self, _: Vec4<N>)

Sets the rotation of self.

impl<N, Rhs: Rot4MulRhs<N, Res>, Res> Mul<Rhs, Res> for Rot4<N>

fn mul(&self, other: &Rhs) -> Res

impl<N: Num + Clone> Rotate<Vec4<N>> for Rot4<N>

fn rotate(&self, v: &Vec4<N>) -> Vec4<N>

Applies a rotation to v.

fn inv_rotate(&self, v: &Vec4<N>) -> Vec4<N>

Applies an inverse rotation to v.

impl<N: Num + Clone> Transform<Vec4<N>> for Rot4<N>

fn transform(&self, v: &Vec4<N>) -> Vec4<N>

Applies a transformation to v.

fn inv_transform(&self, v: &Vec4<N>) -> Vec4<N>

Applies an inverse transformation to v.

impl<N> Dim for Rot4<N>

fn dim(_: Option<Rot4<N>>) -> uint

The dimension of the object.

impl<N: Num + Clone> Rot4MulRhs<N, Rot4<N>> for Rot4<N>

fn binop(left: &Rot4<N>, right: &Rot4<N>) -> Rot4<N>

impl<N: Num + Clone> Vec4MulRhs<N, Vec4<N>> for Rot4<N>

fn binop(left: &Vec4<N>, right: &Rot4<N>) -> Vec4<N>

impl<N: One + Zero + Clone> One for Rot4<N>

fn one() -> Rot4<N>

impl<N: Cast<f32> + Real + Real + Num + Clone> RotationMatrix<Vec4<N>, Vec4<N>, Rot4<N>> for Rot4<N>

fn to_rot_mat(&self) -> Rot4<N>

Gets the rotation matrix represented by self.

impl<N: Clone + Zero> Col<Vec4<N>> for Rot4<N>

fn ncols(&self) -> uint

The number of column of this matrix or vector.

fn col(&self, i: uint) -> Vec4<N>

Reads the i-th column of self.

fn set_col(&mut self, i: uint, col: Vec4<N>)

Writes the i-th column of self.

impl<N: Clone + Zero> Row<Vec4<N>> for Rot4<N>

fn nrows(&self) -> uint

The number of column of self.

fn row(&self, i: uint) -> Vec4<N>

Reads the i-th row of self.

fn set_row(&mut self, i: uint, row: Vec4<N>)

Writes the i-th row of self.

impl<N: Signed> Absolute<Mat4<N>> for Rot4<N>

fn abs(m: &Rot4<N>) -> Mat4<N>

Computes some absolute value of this object. Typically, this will make all component of a matrix or vector positive.

impl<N: One + Zero + Clone> ToHomogeneous<Mat5<N>> for Rot4<N>

fn to_homogeneous(m: &Rot4<N>) -> Mat5<N>

Gets the homogeneous coordinates form of this object.

impl<N: Clone> Inv for Rot4<N>

fn inv(&mut self) -> bool

In-place version of inverse.

fn inv_cpy(m: &Rot4<N>) -> Option<Rot4<N>>

Returns the inverse of self.

impl<N: Clone> Transpose for Rot4<N>

fn transpose_cpy(m: &Rot4<N>) -> Rot4<N>

Computes the transpose of a matrix.

fn transpose(&mut self)

In-place version of transposed.

impl<N: ApproxEq<N>> ApproxEq<N> for Rot4<N>

fn approx_epsilon(_: Option<Rot4<N>>) -> N

Default epsilon for approximation.

fn approx_eq(a: &Rot4<N>, b: &Rot4<N>) -> bool

Tests approximate equality.

fn approx_eq_eps(a: &Rot4<N>, b: &Rot4<N>, epsilon: &N) -> bool

Tests approximate equality using a custom epsilon.