mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-16 01:37:00 +00:00
@@ -147,6 +147,15 @@ inline CVector3f operator+(const CVector3f& lhs, const CVector3f& rhs) {
|
||||
float z = lhs.GetZ() + rhs.GetZ();
|
||||
return CVector3f(x, y, z);
|
||||
}
|
||||
|
||||
// TODO real?
|
||||
inline CVector3f operator*(const CVector3f& lhs, const CVector3f& rhs) {
|
||||
float x = lhs.GetX() * rhs.GetX();
|
||||
float y = lhs.GetY() * rhs.GetY();
|
||||
float z = lhs.GetZ() * rhs.GetZ();
|
||||
return CVector3f(x, y, z);
|
||||
}
|
||||
|
||||
inline CVector3f operator*(const CVector3f& vec, const float f) {
|
||||
float x = vec.GetX() * f;
|
||||
float y = vec.GetY() * f;
|
||||
|
||||
Reference in New Issue
Block a user