mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-14 08:54:09 +00:00
CAutomobile::PreRender; whole class finished
This commit is contained in:
parent
8de701dd70
commit
6ff921c160
18 changed files with 764 additions and 38 deletions
|
@ -31,7 +31,7 @@ public:
|
|||
void Normalise(void) {
|
||||
float sq = MagnitudeSqr();
|
||||
if(sq > 0.0f){
|
||||
float invsqrt = 1.0f/Sqrt(sq); // CMaths::RecipSqrt
|
||||
float invsqrt = RecipSqrt(sq);
|
||||
x *= invsqrt;
|
||||
y *= invsqrt;
|
||||
z *= invsqrt;
|
||||
|
@ -71,6 +71,10 @@ public:
|
|||
return CVector(-x, -y, -z);
|
||||
}
|
||||
|
||||
const bool operator==(CVector const &right) {
|
||||
return x == right.x && y == right.y && z == right.z;
|
||||
}
|
||||
|
||||
bool IsZero(void) { return x == 0.0f && y == 0.0f && z == 0.0f; }
|
||||
};
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ public:
|
|||
void Normalise(void){
|
||||
float sq = MagnitudeSqr();
|
||||
if(sq > 0.0f){
|
||||
float invsqrt = 1.0f/Sqrt(sq);
|
||||
float invsqrt = RecipSqrt(sq);
|
||||
x *= invsqrt;
|
||||
y *= invsqrt;
|
||||
}else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue