X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=gph-cmath;a=blobdiff_plain;f=src%2Fcgmath.h;h=33b07178dd3a2ef36321d698c859528edd32ce5f;hp=e6648ec3f65459b654bf336e2b138136ff7a1bea;hb=c5a2f08ca01ec6f3b8f6974634c6adad72b61fa8;hpb=44b2f3ed294a4d5e7662444079814c69b72db17d diff --git a/src/cgmath.h b/src/cgmath.h index e6648ec..33b0717 100644 --- a/src/cgmath.h +++ b/src/cgmath.h @@ -1,4 +1,4 @@ -/* C version of the graphene math library +/* gph-cmath - C graphics math library * Copyright (C) 2018 John Tsiombikas * * This program is free software. Feel free to use, modify, and/or redistribute @@ -18,7 +18,7 @@ * * 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_ @@ -134,9 +134,9 @@ static inline void cgm_mmul(float *a, const float *b); 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 */