Krig Game Engine
Loading...
Searching...
No Matches
Vector Struct Reference

Public Member Functions

 Vector (const float &, const float &, const float &)
void setVector (const float &, const float &, const float &)
void normalize ()
float dotProduct (const Vector &)
void crossProduct (const Vector &, const Vector &)
float getDistance (const Vector &)
float getLength ()
float getScaler (const Vector &)
float getSum ()
void scale (const float &)
void average (const Vector &, const Vector &)
void calcNorm (const Vector &, const Vector &, const Vector &)
Vector operator* (float)
Vector operator+ (const Vector &)
void operator= (const Vector &)
void operator+= (const Vector &)
void operator-= (const Vector &)
void rotateVector (const Matrix &, const Vector &)
void transformVector (const Matrix &, const Vector &)
bool intersectBox (const Vector &rayOrigin, Vector box[], float margin, Vector &hitPoint)
bool intersectBox (const Vector &rayOrigin, Vector box[], float margin)

Public Attributes

float x
float y
float z

The documentation for this struct was generated from the following files: