added Box intersect() optimization... ~2% faster
git-svn-id: svn://anubis/fart/trunk@305 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
138c90c2c3
commit
437fa8b07a
6 files changed
+53
-2
No files matched your search
@@ -6,6 +6,10 @@
|
||||
|
||||
#include "Vector.h"
|
||||
|
||||
const Vector Vector::X(1, 0, 0);
|
||||
const Vector Vector::Y(0, 1, 0);
|
||||
const Vector Vector::Z(0, 0, 1);
|
||||
|
||||
Vector::Vector()
|
||||
{
|
||||
m_array[0] = 0.0;
|
||||
|
||||
@@ -32,6 +32,10 @@ class Vector
|
||||
Vector & operator+=(const Vector & v2);
|
||||
Vector & operator-=(const Vector & v2);
|
||||
|
||||
static const Vector X;
|
||||
static const Vector Y;
|
||||
static const Vector Z;
|
||||
|
||||
protected:
|
||||
double m_array[3];
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user