mirror of
https://github.com/mrxenginner/reVC.git
synced 2026-10-11 09:48:15 +08:00
Merge remote-tracking branch 'origin/master' into Standalone
This commit is contained in:
commit
941c50ee25
3 files changed
+22
-6
No files matched your search
@@ -4,6 +4,19 @@
|
||||
|
||||
// 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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user