|
| G3DVector () |
|
| G3DVector (const G3DVector *pThat) |
| Copies the values from pThat. More...
|
|
| G3DVector (G3DReal x, G3DReal y, G3DReal z) |
| Initializes the values to <x,y,z> More...
|
|
void | add (const G3DVector *pThat) |
| adds pThat to this More...
|
|
void | add (G3DReal mag, const G3DVector *pThat) |
| adds mag * pThat to this More...
|
|
void | add (G3DReal dx, G3DReal dy, G3DReal dz) |
|
void | copy (const G3DVector *pThat) |
| Makes a copy of pThat. More...
|
|
void | crossProduct (G3DVector *pA, G3DVector *pB) |
| this = pA x pB More...
|
|
void | deserialize (GDomNode *pNode) |
| Load this object from a DOM. More...
|
|
G3DReal | dotProduct (const G3DVector *pThat) |
| returns the dot product of this and that More...
|
|
void | fromYawAndPitch (G3DReal dYaw, G3DReal dPitch) |
| dYaw and dPitch are in radians More...
|
|
bool | isEqual (const G3DVector &that) const |
| Returns true iff all three elements are equal. More...
|
|
void | makeRandom (GRand *pRand) |
| Picks a random vector from a spherical distribution. More...
|
|
void | multiply (G3DReal mag) |
| multiplies this by mag More...
|
|
void | multiply (G3DMatrix *pMatrix, G3DVector *pVector) |
| this = pMatrix * pVector More...
|
|
void | normalize () |
| Normalizes this vector. More...
|
|
void | planeEquation (const G3DVector *pPoint1, const G3DVector *pPoint2, const G3DVector *pPoint3, G3DReal *pOutD) |
| Computes the plane equation (ax + by + cz + d = 0) of the specified triangle. this = <a, b, c> and *pOutD = d. More...
|
|
void | reflectionVector (G3DVector *pRay, G3DVector *pNormal) |
| Sets this to the reflection of pRay on a surface with normal vector pNormal. More...
|
|
GDomNode * | serialize (GDom *pDoc) const |
| Marshal this object into a DOM, which can then be converted to a variety of serial formats. More...
|
|
void | set (G3DReal x, G3DReal y, G3DReal z) |
| Sets the values of this vector. More...
|
|
G3DReal | squaredDist (const G3DVector *pThat) const |
| returns the squared distance between this and pThat More...
|
|
double | squaredMag () const |
| returns the squared magnitude of this vector More...
|
|
void | subtract (const G3DVector *pThat) |
| subtracts pThat from this More...
|
|
void | triangleNormal (const G3DVector *pPoint1, const G3DVector *pPoint2, const G3DVector *pPoint3) |
| Sets this to the normal vector of the triangle specified by three points. More...
|
|
G3DReal * | vals () |
| Returns the vector as an array of reals. More...
|
|
void | yawAndPitch (G3DReal *pYaw, G3DReal *pPitch) const |
| *pYaw and *pPitch are in radians More...
|
|