Vecmat 0.2.3
C math and linear algebra library for 2D/3D graphics, physics, and science.
Loading...
Searching...
No Matches
matrix3i.c File Reference
#include <vecmat.h>

Go to the source code of this file.

Functions

matrix3i mat3i_identity (void)
 Constructs the 3x3 identity matrix.
matrix3i mat3i_mul (const matrix3i a, const matrix3i b)
 Multiplies two 3x3 integer matrices.
matrix3i mat3i_transpose (const matrix3i m)
 Computes the transpose of a 3x3 integer matrix.
vm_int_t mat3i_determinant (const matrix3i m)
 Computes the determinant of a 3x3 integer matrix.
matrix3i mat3i_inverse (const matrix3i m)
 Computes the inverse of a 3x3 integer matrix.
vector3i mat3i_mul_vec3i (const matrix3i m, const vector3i v)
 Multiplies a 3x3 integer matrix by a vector3i.
vector2i mat3i_mul_vec2i (const matrix3i m, const vector2i v)
 Applies a 3x3 integer affine transform to a vector2i.

Function Documentation

◆ mat3i_determinant()

vm_int_t mat3i_determinant ( const matrix3i m)

Computes the determinant of a 3x3 integer matrix.

Parameters
mThe input matrix.
Returns
The determinant value.

Definition at line 58 of file matrix3i.c.

References matrix3i::v.

Referenced by mat3i_inverse_ptr().

◆ mat3i_identity()

matrix3i mat3i_identity ( void )

Constructs the 3x3 identity matrix.

See mat3i_identity_ptr instead.

Returns
The identity matrix3i.

Definition at line 14 of file matrix3i.c.

References mat3i_identity_ptr().

◆ mat3i_inverse()

matrix3i mat3i_inverse ( const matrix3i m)

Computes the inverse of a 3x3 integer matrix.

See mat3i_inverse_ptr instead.

Parameters
mThe input matrix.
Returns
The inverse matrix.

Definition at line 73 of file matrix3i.c.

References mat3i_inverse_ptr().

◆ mat3i_mul()

matrix3i mat3i_mul ( const matrix3i a,
const matrix3i b )

Multiplies two 3x3 integer matrices.

See mat3i_mul_ptr instead.

Parameters
aThe first matrix.
bThe second matrix.
Returns
The product matrix.

Definition at line 30 of file matrix3i.c.

References mat3i_mul_ptr().

◆ mat3i_mul_vec2i()

vector2i mat3i_mul_vec2i ( const matrix3i m,
const vector2i v )

Applies a 3x3 integer affine transform to a vector2i.

See mat3i_mul_vec2i_ptr instead.

Parameters
mInput matrix.
vInput vector.
Returns
The resulting vector2i.

Definition at line 105 of file matrix3i.c.

References mat3i_mul_vec2i_ptr().

◆ mat3i_mul_vec3i()

vector3i mat3i_mul_vec3i ( const matrix3i m,
const vector3i v )

Multiplies a 3x3 integer matrix by a vector3i.

See mat3i_mul_vec3i_ptr instead.

Parameters
mInput matrix.
vInput vector.
Returns
The resulting vector3i.

Definition at line 89 of file matrix3i.c.

References mat3i_mul_vec3i_ptr().

◆ mat3i_transpose()

matrix3i mat3i_transpose ( const matrix3i m)

Computes the transpose of a 3x3 integer matrix.

See mat3i_transpose_ptr instead.

Parameters
mThe input matrix.
Returns
The transposed matrix.

Definition at line 45 of file matrix3i.c.

References mat3i_transpose_ptr().