-/* C version of the graphene math library
+/* gph-cmath - C graphics math library
* Copyright (C) 2018 John Tsiombikas <nuclear@member.fsf.org>
*
* This program is free software. Feel free to use, modify, and/or redistribute
*
* NOTE: matrices are treated by all operations as column-major, to match OpenGL
* conventions, so everything is pretty much transposed.
- */
+*/
#ifndef CGMATH_H_
#define CGMATH_H_
static inline void cgm_msubmatrix(float *m, int row, int col);
static inline void cgm_mupper3(float *m);
-static inline float cgm_msubdet(float *m, int row, int col);
-static inline float cgm_mcofactor(float *m, int row, int col);
-static inline float cgm_mdet(float *m);
+static inline float cgm_msubdet(const float *m, int row, int col);
+static inline float cgm_mcofactor(const float *m, int row, int col);
+static inline float cgm_mdet(const float *m);
static inline void cgm_mtranspose(float *m);
static inline void cgm_mcofmatrix(float *m);
static inline int cgm_minverse(float *m); /* returns 0 on success, -1 for singular */