|
| Vector3 (const float fX, const float fY, const float fZ) |
|
| Vector3 (const float afCoordinate[3]) |
|
| Vector3 (const int afCoordinate[3]) |
|
| Vector3 (float *const r) |
|
| Vector3 (const float scaler) |
|
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.
|
|
Vector3 & | operator= (const Vector3 &rkVector) |
| Assigns the value of the other vector. More...
|
|
| Vector3 (const DeviceVector3 &v) |
|
Vector3 & | operator= (const DeviceVector3 &rkVector) |
|
Vector3 & | operator= (const float fScaler) |
|
bool | operator== (const Vector3 &rkVector) const |
|
bool | operator!= (const Vector3 &rkVector) const |
|
Vector3 | operator+ (const Vector3 &rkVector) const |
|
Vector3 | operator- (const Vector3 &rkVector) const |
|
Vector3 | operator* (const float fScalar) const |
|
Vector3 | operator% (const Vector3 &rhs) const |
| special cross product
|
|
Vector3 | operator* (const Vector3 &rhs) const |
|
Vector3 | operator/ (const float fScalar) const |
|
Vector3 | operator/ (const Vector3 &rhs) const |
|
const Vector3 & | operator+ () const |
|
Vector3 | operator- () const |
|
Vector3 & | operator+= (const Vector3 &rkVector) |
|
Vector3 & | operator+= (const float fScalar) |
|
Vector3 & | operator-= (const Vector3 &rkVector) |
|
Vector3 & | operator-= (const float fScalar) |
|
Vector3 & | operator*= (const float fScalar) |
|
Vector3 & | operator*= (const Vector3 &rkVector) |
|
Vector3 | operator* (const Matrix4 &mat) const |
| row major multiply with an affine matrix. More...
|
|
Vector3 & | operator/= (const float fScalar) |
|
Vector3 & | operator/= (const Vector3 &rkVector) |
|
int | dominantAxis () const |
| Returns the axis along which this vector is dominant.
|
|
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 | distance (const Vector3 &rhs) const |
| Returns the distance to another vector. More...
|
|
float | squaredDistance (const Vector3 &rhs) const |
| Returns the square of the distance to another vector. More...
|
|
float | dotProduct (const Vector3 &vec) const |
| Calculates the dot (scalar) product of this vector with another. More...
|
|
float | absDotProduct (const Vector3 &vec) const |
| Calculates the absolute dot (scalar) product of this vector with another. More...
|
|
float | normalise () |
| Normalises the vector. More...
|
|
Vector3 | InvertYCopy () const |
|
Vector3 & | InvertY () |
|
Vector3 | crossProduct (const Vector3 &rkVector) const |
| Calculates the cross-product of 2 vectors, i.e. More...
|
|
Vector3 | midPoint (const Vector3 &vec) const |
| Returns a vector at a point half way between this and the passed in vector.
|
|
Vector3 | TransformNormal (const Matrix4 &m) const |
| ignored translation(row 3). More...
|
|
Vector3 | TransformCoord (const Matrix4 &m) const |
| only use this function. More...
|
|
bool | operator< (const Vector3 &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 Vector3 &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 Vector3 &cmp) |
| Sets this vector's components to the minimum of its own and the ones of the passed in vector. More...
|
|
void | makeCeil (const Vector3 &cmp) |
| Sets this vector's components to the maximum of its own and the ones of the passed in vector. More...
|
|
Vector3 | perpendicular (void) const |
| Generates a vector perpendicular to this vector (eg an 'up' vector). More...
|
|
Vector3 | randomDeviant (const Radian &angle, const Vector3 &up=Vector3::ZERO) const |
| Generates a new random vector which deviates from this vector by a given angle in a random direction. More...
|
|
Radian | angleBetween (const Vector3 &dest) |
| Gets the angle between 2 vectors. More...
|
|
Quaternion | getRotationTo (const Vector3 &dest, const Vector3 &fallbackAxis=Vector3::ZERO) const |
| Gets the shortest arc quaternion to rotate this vector to the destination vector. More...
|
|
bool | isZeroLength (void) const |
| Returns true if this vector is zero length. More...
|
|
Vector3 | normalisedCopy (void) const |
| As normalise, except that this vector is unaffected and the normalised vector is returned as a copy. More...
|
|
Vector3 | reflect (const Vector3 &normal) const |
| Calculates a reflection vector to the plane with the given normal . More...
|
|
bool | positionEquals (const Vector3 &rhs, float tolerance=1e-03) const |
| Returns whether this vector is within a positional tolerance of another vector. More...
|
|
bool | positionCloses (const Vector3 &rhs, float tolerance=1e-03f) const |
| Returns whether this vector is within a positional tolerance of another vector, also take scale of the vectors into account. More...
|
|
bool | directionEquals (const Vector3 &rhs, const Radian &tolerance) const |
| Returns whether this vector is within a directional tolerance of another vector. More...
|
|
DeviceVector3_ptr | GetPointer () |
|
Standard 3-dimensional vector.