C linear algebra math library (initial version created during pikuma-3d-graphics).
- Convention: Column vectors
- Storage: Row major
as-c-math
uses column vectors (matrices are multiplied right to left - post-multiply) with vectors appearing on the right of a matrix multiply. The storage order is row major however (basis axes are interleaved). Matrices must be transposed before being passed to any graphics API to ensure the basis vectors are contiguous in memory.
- as - C++ linear algebra math library (templated).
negatenear- vec_min
- vec_max
- vec_min_elem
- vec_max_elem
- vec_abs
- vec_clamp
- vec_saturate
- vec_floor
- vec_ceil
- vec_round
- vec_orthogonal (cw/ccw)
- reflect
- orthogonal
- orthonormal_basis
- point/vec average
mat_determinantmat_inverse- mat shear
quaternion- basis
add _v postfix for matrix functions to allow call by value