|
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 | |
| matrix2 | mat2_identity (void) |
| Constructs the 2x2 identity matrix. | |
| matrix2 | mat2_mul (const matrix2 a, const matrix2 b) |
| Multiplies two 2x2 matrices (a * b). | |
| matrix2 | mat2_transpose (const matrix2 m) |
| Computes the transpose of a 2x2 matrix. | |
| matrix2 | mat2_inverse (const matrix2 m) |
| Computes the inverse of a 2x2 matrix. | |
| matrix2 | mat2_rotation_z (const vm_float_t degrees) |
| Constructs a 2x2 Z-axis rotation matrix. | |
| vm_float_t | mat2_determinant (const matrix2 m) |
| Calculates the determinant of the given 2x2 matrix. | |
| vector2 | mat2_mul_vec2 (const matrix2 m, const vector2 v) |
| Multiplies a 2x2 matrix by a vector2. | |
| matrix2 | mat2_scale (const vector2 s) |
| Builds a 2x2 scaling matrix from a vector2. | |
| matrix2 | mat2_from_mat3 (const matrix3 m) |
| Copies the upper-left 2x2 of a matrix3. | |
| vm_float_t mat2_determinant | ( | const matrix2 | m | ) |
Calculates the determinant of the given 2x2 matrix.
| m | The matrix. |
Definition at line 88 of file matrix2.c.
References matrix2::v.
Referenced by mat2_inverse_ptr().
Copies the upper-left 2x2 of a matrix3.
See mat2_from_mat3_ptr instead.
| m | Input matrix. |
Definition at line 132 of file matrix2.c.
References mat2_from_mat3_ptr().
| matrix2 mat2_identity | ( | void | ) |
Constructs the 2x2 identity matrix.
See mat2_identity_ptr instead.
Definition at line 14 of file matrix2.c.
References mat2_identity_ptr().
Computes the inverse of a 2x2 matrix.
See mat2_inverse_ptr instead.
| m | The input matrix. |
Definition at line 60 of file matrix2.c.
References mat2_inverse_ptr().
Multiplies two 2x2 matrices (a * b).
See mat2_mul_ptr instead.
| a | The first matrix. |
| b | The second matrix. |
Definition at line 30 of file matrix2.c.
References mat2_mul_ptr().
Multiplies a 2x2 matrix by a vector2.
See mat2_mul_vec2_ptr instead.
| m | Input matrix. |
| v | Input vector. |
Definition at line 102 of file matrix2.c.
References mat2_mul_vec2_ptr().
| matrix2 mat2_rotation_z | ( | const vm_float_t | degrees | ) |
Constructs a 2x2 Z-axis rotation matrix.
See mat2_rotation_z_ptr instead.
| degrees | Rotation angle in degrees. |
Definition at line 75 of file matrix2.c.
References mat2_rotation_z_ptr().
Builds a 2x2 scaling matrix from a vector2.
See mat2_scale_ptr instead.
| s | Scale vector. |
Definition at line 117 of file matrix2.c.
References mat2_scale_ptr().
Computes the transpose of a 2x2 matrix.
See mat2_transpose_ptr instead.
| m | The input matrix. |
Definition at line 45 of file matrix2.c.
References mat2_transpose_ptr().