26 return sqrt(
x*
x +
y*
y +
z*
z);
31 float l = sqrt(v.
x * v.
x + v.
y * v.
y + v.
z * v.
z);
95 return v1.
x * v2.
x + v1.
y * v2.
y + v1.
z * v2.
z;
101 tmp.
x = v1.
y * v2.
z - v1.
z * v2.
y;
102 tmp.
y = v1.
z * v2.
x - v1.
x * v2.
z;
103 tmp.
z = v1.
x * v2.
y - v1.
y * v2.
x;
Definition: RefCapture.h:3
float y
Definition: Vector3.h:10
float z
Definition: Vector3.h:10
static Vector3 operator*(Vector3 v, float f)
Definition: Vector3.h:57
static Vector3 crossProduct(Vector3 v1, Vector3 v2)
Definition: Vector3.h:98
static Vector3 one
Definition: Vector3.h:107
float x
Definition: Vector3.h:10
static Vector3 zero
Definition: Vector3.h:108
Vector3(float v)
Definition: Vector3.h:12
static Vector3 operator/(Vector3 v, float f)
Definition: Vector3.h:75
static float dotProduct(Vector3 v1, Vector3 v2)
Definition: Vector3.h:93
static Vector3 normalize(Vector3 v)
Definition: Vector3.h:29
static Vector3 operator*(Vector3 v1, Vector3 v2)
Definition: Vector3.h:66
Vector3(float _x, float _y, float _z)
Definition: Vector3.h:17
static Vector3 operator+(Vector3 v1, Vector3 v2)
Definition: Vector3.h:48
static Vector3 operator-(Vector3 v1, Vector3 v2)
Definition: Vector3.h:39
float length()
Definition: Vector3.h:24