mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-19 17:29:06 +02:00
More const/static-ification
This commit is contained in:
1 parent
2ba4eaf3dd
commit
eccd7f3767
14 files changed
+20
-21
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user