|
Vecmat 0.2.3
C math and linear algebra library for 2D/3D graphics, physics, and science.
|
#include <vecmat.h>Go to the source code of this file.
Functions | |
| matrix3 | mat3_identity (void) |
| Constructs the 3x3 identity matrix. | |
| matrix3 | mat3_mul (const matrix3 a, const matrix3 b) |
| Multiplies two 3x3 matrices. | |
| matrix3 | mat3_transpose (const matrix3 m) |
| Computes the transpose of a 3x3 matrix. | |
| matrix3 | mat3_inverse (const matrix3 m) |
| Computes the inverse of a 3x3 matrix. | |
| matrix3 | mat3_rotation_z (const vm_float_t degrees) |
| Constructs the 3x3 rotation matrix around the Z-axis. | |
| vm_float_t | mat3_determinant (const matrix3 m) |
| Computes the determinant of a 3x3 matrix. | |
| vector3 | mat3_mul_vec3 (const matrix3 m, const vector3 v) |
| Multiplies a 3x3 matrix by a vector3. | |
| vector2 | mat3_mul_vec2 (const matrix3 m, const vector2 v) |
| Applies a 3x3 affine transform to a vector2. | |
| matrix3 | mat3_rotation_x (const vm_float_t degrees) |
| Builds a 3x3 rotation matrix around the X axis (degrees). | |
| matrix3 | mat3_rotation_y (const vm_float_t degrees) |
| Builds a 3x3 rotation matrix around the Y axis (degrees). | |
| matrix3 | mat3_translate (const vector2 t) |
| Builds a 3x3 2D translation matrix. | |
| matrix3 | mat3_scale (const vector2 s) |
| Builds a 3x3 2D scaling matrix. | |
| matrix3 | mat3_from_mat4 (const matrix4 m) |
| Copies the upper-left 3x3 of a matrix4. | |
| vm_float_t mat3_determinant | ( | const matrix3 | m | ) |
Computes the determinant of a 3x3 matrix.
| m | The input matrix. |
Definition at line 88 of file matrix3.c.
References matrix3::v.
Copies the upper-left 3x3 of a matrix4.
See mat3_from_mat4_ptr instead.
| m | Input matrix. |
Definition at line 195 of file matrix3.c.
References mat3_from_mat4_ptr().
| matrix3 mat3_identity | ( | void | ) |
Constructs the 3x3 identity matrix.
See mat3_identity_ptr instead.
Definition at line 14 of file matrix3.c.
References mat3_identity_ptr().
Computes the inverse of a 3x3 matrix.
See mat3_inverse_ptr instead.
| m | The input matrix. |
Definition at line 60 of file matrix3.c.
References mat3_inverse_ptr().
Multiplies two 3x3 matrices.
See mat3_mul_ptr instead.
| a | The first matrix. |
| b | The second matrix. |
Definition at line 30 of file matrix3.c.
References mat3_mul_ptr().
Applies a 3x3 affine transform to a vector2.
See mat3_mul_vec2_ptr instead.
| m | Input matrix. |
| v | Input vector. |
Definition at line 120 of file matrix3.c.
References mat3_mul_vec2_ptr().
Multiplies a 3x3 matrix by a vector3.
See mat3_mul_vec3_ptr instead.
| m | Input matrix. |
| v | Input vector. |
Definition at line 104 of file matrix3.c.
References mat3_mul_vec3_ptr().
| matrix3 mat3_rotation_x | ( | const vm_float_t | degrees | ) |
Builds a 3x3 rotation matrix around the X axis (degrees).
See mat3_rotation_x_ptr instead.
| degrees | Rotation angle in degrees. |
Definition at line 135 of file matrix3.c.
References mat3_rotation_x_ptr().
| matrix3 mat3_rotation_y | ( | const vm_float_t | degrees | ) |
Builds a 3x3 rotation matrix around the Y axis (degrees).
See mat3_rotation_y_ptr instead.
| degrees | Rotation angle in degrees. |
Definition at line 150 of file matrix3.c.
References mat3_rotation_y_ptr().
| matrix3 mat3_rotation_z | ( | const vm_float_t | degrees | ) |
Constructs the 3x3 rotation matrix around the Z-axis.
See mat3_rotation_z_ptr instead.
| degrees | The rotation angle in degrees. |
Definition at line 75 of file matrix3.c.
References mat3_rotation_z_ptr().
Builds a 3x3 2D scaling matrix.
See mat3_scale_ptr instead.
| s | Scale vector. |
Definition at line 180 of file matrix3.c.
References mat3_scale_ptr().
Builds a 3x3 2D translation matrix.
See mat3_translate_ptr instead.
| t | Translation vector. |
Definition at line 165 of file matrix3.c.
References mat3_translate_ptr().
Computes the transpose of a 3x3 matrix.
See mat3_transpose_ptr instead.
| m | The input matrix. |
Definition at line 45 of file matrix3.c.
References mat3_transpose_ptr().