27 return sqrt(
x*
x +
y*
y +
z*
z);
32 float l = sqrt(v.
x * v.
x + v.
y * v.
y + v.
z * v.
z);
96 return v1.
x * v2.
x + v1.
y * v2.
y + v1.
z * v2.
z;
102 tmp.
x = v1.
y * v2.
z - v1.
z * v2.
y;
103 tmp.
y = v1.
z * v2.
x - v1.
x * v2.
z;
104 tmp.
z = v1.
x * v2.
y - v1.
y * v2.
x;
122 Vector4(
float _x,
float _y,
float _z,
float _w)
247 return RAD_TO_DEG(d);
251 return DEG_TO_RAD(d);
254 static float lerp(
float start,
float end,
float rate)
256 return start * (1 - rate) + end * rate;
259 static const float PI=3.1415f;
Definition: Vector3.h:243
static const float PI
Definition: Vector3.h:259
static float lerp(float start, float end, float rate)
Definition: Vector3.h:254
static float ToDeg(float d)
Definition: Vector3.h:246
static float ToRad(float d)
Definition: Vector3.h:250
Definition: Vector3.h:264
float height
Definition: Vector3.h:266
Rectangle(float _x, float _y, float _w, float _h)
Definition: Vector3.h:267
float width
Definition: Vector3.h:266
float x
Definition: Vector3.h:266
float y
Definition: Vector3.h:266
Definition: RefCapture.h:3
Definition: Vector3.h:186
float y
Definition: Vector3.h:189
static Vector2 operator-(Vector2 v, Vector2 v2)
Definition: Vector3.h:210
Vector2(float v)
Definition: Vector3.h:191
Vector2(float _x, float _y)
Definition: Vector3.h:196
float x
Definition: Vector3.h:189
static Vector2 operator+(Vector2 v, Vector2 v2)
Definition: Vector3.h:202
static Vector2 operator/(Vector2 v, float f)
Definition: Vector3.h:218
static Vector2 operator*(Vector2 v, float f)
Definition: Vector3.h:226
float y
Definition: Vector3.h:11
float z
Definition: Vector3.h:11
static Vector3 operator*(Vector3 v, float f)
Definition: Vector3.h:58
static Vector3 crossProduct(Vector3 v1, Vector3 v2)
Definition: Vector3.h:99
static Vector3 one
Definition: Vector3.h:108
float x
Definition: Vector3.h:11
static Vector3 zero
Definition: Vector3.h:109
Vector3(float v)
Definition: Vector3.h:13
static Vector3 operator/(Vector3 v, float f)
Definition: Vector3.h:76
static float dotProduct(Vector3 v1, Vector3 v2)
Definition: Vector3.h:94
static Vector3 normalize(Vector3 v)
Definition: Vector3.h:30
static Vector3 operator*(Vector3 v1, Vector3 v2)
Definition: Vector3.h:67
Vector3(float _x, float _y, float _z)
Definition: Vector3.h:18
static Vector3 operator+(Vector3 v1, Vector3 v2)
Definition: Vector3.h:49
static Vector3 operator-(Vector3 v1, Vector3 v2)
Definition: Vector3.h:40
float length()
Definition: Vector3.h:25
Definition: Vector3.h:112
float x
Definition: Vector3.h:115
float w
Definition: Vector3.h:115
float y
Definition: Vector3.h:115
static Vector4 operator/(Vector4 v, float f)
Definition: Vector3.h:140
float z
Definition: Vector3.h:115
static Vector4 operator+(Vector4 v, Vector4 v2)
Definition: Vector3.h:150
Vector4(float _x, float _y, float _z, float _w)
Definition: Vector3.h:122
static Vector4 operator*(Vector4 v, float f)
Definition: Vector3.h:130
Vector3 getXYZ()
Definition: Vector3.h:180
Vector4(float v)
Definition: Vector3.h:117
static Vector4 operator-(Vector4 v, Vector4 v2)
Definition: Vector3.h:160