More const/static-ification

This commit is contained in:
Henrik Rydgård committed 2024-09-17 15:22:37 +02:00
1 parent 2ba4eaf3dd
commit eccd7f3767
14 files changed
+20 -21

No files matched your search

+2 -2
View File
@@ -13,10 +13,10 @@ float ToRadians(float deg) {
return (float)(deg * M_PI / 180.0f);
}
bool IsMatrixIdentity(float* matrix) {
bool IsMatrixIdentity(const float *matrix4x4) {
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
float value = matrix[i * 4 + j];
float value = matrix4x4[i * 4 + j];
// Other number than zero on non-diagonale
if ((i != j) && (fabs(value) > EPSILON)) return false;