|
| Vector2 (const float fX, const float fY) |
|
| Vector2 (const float scaler) |
|
| Vector2 (const float afCoordinate[2]) |
|
| Vector2 (const int afCoordinate[2]) |
|
| Vector2 (float *const r) |
|
float | operator[] (const size_t i) const |
|
float & | operator[] (const size_t i) |
|
float * | ptr () |
| Pointer accessor for direct copying.
|
|
const float * | ptr () const |
| Pointer accessor for direct copying.
|
|
Vector2 & | operator= (const Vector2 &rkVector) |
| Assigns the value of the other vector. More...
|
|
Vector2 & | operator= (const float fScalar) |
|
bool | operator== (const Vector2 &rkVector) const |
|
bool | operator!= (const Vector2 &rkVector) const |
|
Vector2 | operator+ (const Vector2 &rkVector) const |
|
Vector2 | operator- (const Vector2 &rkVector) const |
|
Vector2 | operator* (const float fScalar) const |
|
Vector2 | operator* (const Vector2 &rhs) const |
|
Vector2 | operator* (const Matrix4 &mat) const |
|
Vector2 | operator/ (const float fScalar) const |
|
Vector2 | operator/ (const Vector2 &rhs) const |
|
const Vector2 & | operator+ () const |
|
Vector2 | operator- () const |
|
Vector2 & | operator+= (const Vector2 &rkVector) |
|
Vector2 & | operator+= (const float fScaler) |
|
Vector2 & | operator-= (const Vector2 &rkVector) |
|
Vector2 & | operator-= (const float fScaler) |
|
Vector2 & | operator*= (const float fScalar) |
|
Vector2 & | operator*= (const Vector2 &rkVector) |
|
Vector2 & | operator/= (const float fScalar) |
|
Vector2 & | operator/= (const Vector2 &rkVector) |
|
float | length () const |
| Returns the length (magnitude) of the vector. More...
|
|
float | squaredLength () const |
| Returns the square of the length(magnitude) of the vector. More...
|
|
float | dotProduct (const Vector2 &vec) const |
| Calculates the dot (scalar) product of this vector with another. More...
|
|
float | normalise () |
| Normalises the vector. More...
|
|
Vector2 | midPoint (const Vector2 &vec) const |
| Returns a vector at a point half way between this and the passed in vector.
|
|
bool | operator< (const Vector2 &rhs) const |
| Returns true if the vector's scalar components are all greater that the ones of the vector it is compared against.
|
|
bool | operator> (const Vector2 &rhs) const |
| Returns true if the vector's scalar components are all smaller that the ones of the vector it is compared against.
|
|
void | makeFloor (const Vector2 &cmp) |
| Sets this vector's components to the minimum of its own and the ones of the passed in vector. More...
|
|
void | makeCeil (const Vector2 &cmp) |
| Sets this vector's components to the maximum of its own and the ones of the passed in vector. More...
|
|
Vector2 | perpendicular (void) const |
| Generates a vector perpendicular to this vector (eg an 'up' vector). More...
|
|
float | crossProduct (const Vector2 &rkVector) const |
| Calculates the 2 dimensional cross-product of 2 vectors, which results in a single floating point value which is 2 times the area of the triangle.
|
|
Vector2 | randomDeviant (float angle) const |
| Generates a new random vector which deviates from this vector by a given angle in a random direction. More...
|
|
bool | isZeroLength (void) const |
| Returns true if this vector is zero length. More...
|
|
Vector2 | normalisedCopy (void) const |
| As normalise, except that this vector is unaffected and the normalised vector is returned as a copy. More...
|
|
Vector2 | reflect (const Vector2 &normal) const |
| Calculates a reflection vector to the plane with the given normal . More...
|
|
Standard 2-dimensional vector.