47 return (vector1.x * vector2.x + vector1.y * vector2.y + vector1.z * vector2.z);
74 crossProduct.x = (vector1.y * vector2.z) - (vector1.z * vector2.y);
75 crossProduct.y = (vector1.z * vector2.x) - (vector1.x * vector2.z);
76 crossProduct.z = (vector1.x * vector2.y) - (vector1.y * vector2.x);
static float dot(Vec3f &vector1, Vec3f &vector2)
Calculate dot product between two 3D floating point vectors.
static Vec3f cross(const Vec3f &vector1, const Vec3f &vector2)
Calculate cross product between two 3D floating point vectors.
A 3D floating point vector.
GLfloat GLfloat GLfloat w
void normalize(void)
Normalize 4D floating point vector.
GLint GLint GLint GLint GLint x
GLenum GLuint GLenum GLsizei length
void normalize(void)
Normalize 3D floating point vector.