[−][src]Type Definition skeletal_animation::math::Matrix4
type Matrix4<T> = [[T; 4]; 4];
A 4x4 matrix.
To multiply two matrices use row_mat4_mul
or col_mat4_mul
.
Trait Implementations
impl<'a> HasShaderSources<'a> for Matrix4<f32>
[src]
impl<'a> HasShaderSources<'a> for Matrix4<f32>
fn vertex_shader_source() -> &'a [u8] | [src] |
fn fragment_shader_source() -> &'a [u8] | [src] |
impl Transform for Matrix4<f32>
[src]
impl Transform for Matrix4<f32>
fn identity() -> Matrix4<f32> | [src] |
fn set_rotation(&mut self, rotation: Quaternion<f32>) | [src] |
fn get_rotation(self) -> Quaternion<f32> | [src] |
fn set_translation(&mut self, translation: Vector3<f32>) | [src] |
fn get_translation(self) -> Vector3<f32> | [src] |
fn concat(self, other: Matrix4<f32>) -> Matrix4<f32> | [src] |
fn inverse(self) -> Matrix4<f32> | [src] |
fn lerp(self, other: Matrix4<f32>, parameter: f32) -> Matrix4<f32> | [src] |
fn transform_vector(self, v: Vector3<f32>) -> Vector3<f32> | [src] |
fn to_matrix(self) -> Matrix4<f32> | [src] |
fn from_matrix(m: Matrix4<f32>) -> Matrix4<f32> | [src] |
impl<T: Transform> FromTransform<T> for Matrix4<f32>
[src]
impl<T: Transform> FromTransform<T> for Matrix4<f32>
fn from_transform(t: T) -> Matrix4<f32> | [src] |