mirror of
https://github.com/zeldaret/tww.git
synced 2026-09-06 02:38:11 -04:00
Add checkScaleOne inline
This commit is contained in:
@@ -49,6 +49,14 @@ inline f32 C_VECSquareMag(const Vec* v) {
|
||||
return v->x * v->x + v->y * v->y + v->z * v->z;
|
||||
}
|
||||
|
||||
inline BOOL checkScaleOne(Vec v) {
|
||||
if (v.x == 1.0f && v.y == 1.0f && v.z == 1.0f) {
|
||||
return TRUE;
|
||||
} else {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
/* When compiling in debug mode, use C implementations */
|
||||
#if 0
|
||||
#define VECAdd C_VECAdd
|
||||
|
||||
Reference in New Issue
Block a user