More CPhysicsActor

Former-commit-id: bc81e35c6b
This commit is contained in:
2022-10-05 15:50:12 -07:00
parent e2e4fe7f6c
commit a3aa74f563
5 changed files with 118 additions and 3 deletions

View File

@@ -149,6 +149,14 @@ inline CVector3f operator*(const CVector3f& vec, f32 f) {
f32 z = vec.GetZ() * f;
return CVector3f(x, y, z);
}
inline CVector3f operator*(f32 f, const CVector3f& vec) {
f32 x = f * vec.GetX();
f32 y = f * vec.GetY();
f32 z = f * vec.GetZ();
return CVector3f(x, y, z);
}
inline CVector3f operator/(const CVector3f& vec, f32 f) {
f32 x = vec.GetX() / f;
f32 y = vec.GetY() / f;