mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-10 19:07:41 +00:00
@@ -7,10 +7,22 @@
|
||||
|
||||
class CUnitVector3f : public CVector3f {
|
||||
public:
|
||||
CUnitVector3f(float x, float y, float z) : CVector3f(x, y, z) { Normalize(); }
|
||||
enum ENormalize {
|
||||
kN_No,
|
||||
kN_Yes,
|
||||
};
|
||||
CUnitVector3f(float x, float y, float z, ENormalize normalize) : CVector3f(x, y, z) {
|
||||
if (normalize == kN_Yes) {
|
||||
Normalize();
|
||||
}
|
||||
}
|
||||
CUnitVector3f(const CVector3f& vec); // : CVector3f(vec) { Normalize(); }
|
||||
// TODO
|
||||
};
|
||||
CHECK_SIZEOF(CUnitVector3f, 0xc)
|
||||
|
||||
inline CUnitVector3f operator-(const CUnitVector3f& vec) {
|
||||
return CUnitVector3f(-vec.GetX(), -vec.GetY(), -vec.GetZ(), CUnitVector3f::kN_No);
|
||||
}
|
||||
|
||||
#endif // _CUNITVECTOR3F
|
||||
|
||||
Reference in New Issue
Block a user