mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-17 18:34:07 +00:00
CVehicle
This commit is contained in:
parent
8705562559
commit
7bf8337854
33 changed files with 1448 additions and 438 deletions
|
@ -11,9 +11,7 @@ public:
|
|||
float Magnitude(void) const { return Sqrt(x*x + y*y); }
|
||||
float MagnitudeSqr(void) const { return x*x + y*y; }
|
||||
|
||||
void Normalise(void);
|
||||
|
||||
void NormaliseSafe(void) {
|
||||
void Normalise(void) {
|
||||
float sq = MagnitudeSqr();
|
||||
if(sq > 0.0f){
|
||||
float invsqrt = RecipSqrt(sq);
|
||||
|
|
|
@ -4,19 +4,6 @@
|
|||
|
||||
// TODO: move more stuff into here
|
||||
|
||||
void
|
||||
CVector2D::Normalise(void)
|
||||
{
|
||||
float sq = MagnitudeSqr();
|
||||
assert(sq != 0.0f); // just be safe here
|
||||
//if(sq > 0.0f){
|
||||
float invsqrt = RecipSqrt(sq);
|
||||
x *= invsqrt;
|
||||
y *= invsqrt;
|
||||
//}else
|
||||
// x = 1.0f;
|
||||
}
|
||||
|
||||
void
|
||||
CMatrix::SetRotate(float xAngle, float yAngle, float zAngle)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue