This is used to represent a point in space, or a vector through space. More...
#include <vector3.h>
Public Member Functions | |
| Vector3 () | |
| Default Constructor. | |
| Vector3 (const Real &X, const Real &Y, const Real &Z) | |
| Real value Constructor. | |
| Vector3 (const Ogre::Vector3 &Vec) | |
| Ogre Value Constructor. | |
| Vector3 (const btVector3 &Vec) | |
| Bullet Value Constructor. | |
| Vector3 (const cAudio::cVector3 &Vec) | |
| cAudio Value Constructor. | |
| Vector3 (const Mezzanine::Vector3 &Vec) | |
| Copy Constructor. | |
| Vector3 (xml::Node OneNode) | |
| Deserializing constructor. | |
| Vector3 | CrossProduct (const Vector3 &Vec) const |
| This is used to calculate the crossproduct of this and another vector. | |
| Real | Distance (const Vector3 &OtherVec) const |
| Gets the distance between this and another vector. | |
| Real | DotProduct (const Vector3 &Vec) const |
| This is used to calculate the dotproduct of this and another vector. | |
| void | ExtractBulletVector3 (const btVector3 &temp) |
| Copies an existing Bullet vector3. | |
| void | ExtractcAudioVector3 (const cAudio::cVector3 &temp) |
| Copies an existing cAudio vector3. | |
| void | ExtractOgreVector3 (const Ogre::Vector3 &temp) |
| Copies an existing Ogre vector3. | |
| Real | GetAxisValue (const Whole &Axis) const |
| Real & | GetAxisValue (const Whole &Axis) |
| Real | GetAxisValue (const StandardAxis &Axis) const |
| Get The value associate with a certain Axis. | |
| Real & | GetAxisValue (const StandardAxis &Axis) |
| Get The value associate with a certain Axis in such a way that it can readily be assigned in this Vector3. | |
| btVector3 | GetBulletVector3 () const |
| Gets a Bullet vector3. | |
| cAudio::cVector3 | GetcAudioVector3 () const |
| Gets a cAudio vector3. | |
| Vector3 | GetDirection (const Vector3 &Destination) const |
| This will get the direction between two points. | |
| Vector3 | GetNormal () const |
| This returns the normal for this relative to the origin. | |
| Ogre::Vector3 | GetOgreVector3 () const |
| Gets a Ogre vector3. | |
| Quaternion | GetRotationToAxis (const Vector3 &Axis, const Vector3 &FallBackAxis=Vector3()) const |
| Gets the rotation needed to rotate this vector as an axis to another axis. | |
| Vector3 | Inverse () |
| This will inverse the reals in the vector. | |
| StandardAxis | IsStandardUnitAxis () const |
| Get a Unit Vector along the given Axis. | |
| bool | IsZeroLength () const |
| Checks to see if the length of this vector is zero. | |
| Real | Length () const |
| Gets the length of this vector. | |
| Vector3 & | Normalize () |
| This will change this point into it's own normal relative to the origin. | |
| bool | operator!= (const btVector3 &Vec) const |
| Inequality Comparison Operator. | |
| bool | operator!= (const Mezzanine::Vector3 &Vec) const |
| Inequality Comparison Operator. | |
| bool | operator!= (const cAudio::cVector3 &Vec) const |
| Inequality Comparison Operator. | |
| bool | operator!= (const Ogre::Vector3 &Vec) const |
| Inequality Comparison Operator. | |
| Vector3 | operator* (const Vector3 &Vec) const |
| Multiplaction Operator. | |
| Vector3 | operator* (const btVector3 &Vec) const |
| Bullet Multiplication Operator. | |
| Vector3 | operator* (const Real &scalar) const |
| Scaling by multiplication. | |
| Vector3 | operator* (const Ogre::Vector3 &Vec) const |
| Ogre Multiplication Operator. | |
| Vector3 | operator* (const cAudio::cVector3 &Vec) const |
| cAudio Multiplication Operator | |
| Vector3 & | operator*= (const Real &scalar) |
| Scaling by multiplication. | |
| Vector3 | operator+ (const btVector3 &Vec) const |
| Bullet Addition Operator. | |
| Vector3 | operator+ (const Ogre::Vector3 &Vec) const |
| Ogre Addition Operator. | |
| Vector3 | operator+ (const cAudio::cVector3 &Vec) const |
| cAudio Addition Operator | |
| Vector3 | operator+ (const Vector3 &Vec) const |
| Addition Operator. | |
| Vector3 | operator- (const Vector3 &Vec) const |
| Subraction Operator. | |
| Vector3 | operator- () |
| Additive Inverse Operator. | |
| Vector3 | operator- (const btVector3 &Vec) const |
| Bullet Subtraction Operator. | |
| Vector3 | operator- (const Ogre::Vector3 &Vec) const |
| Ogre Subtraction Operator. | |
| Vector3 | operator- (const cAudio::cVector3 &Vec) const |
| cAudio Subtraction Operator | |
| Vector3 | operator/ (const Vector3 &Vec) const |
| Division Operator. | |
| Vector3 | operator/ (const cAudio::cVector3 &Vec) const |
| cAudio Division Operator | |
| Vector3 | operator/ (const Real &scalar) const |
| Scaling by Division. | |
| Vector3 | operator/ (const btVector3 &Vec) const |
| Bullet Division Operator. | |
| Vector3 | operator/ (const Ogre::Vector3 &Vec) const |
| Ogre Division Operator. | |
| Vector3 & | operator/= (const Real &scalar) |
| Scaling by Division. | |
| Vector3 & | operator= (const btVector3 &Vec) |
| Assignment operator to convert from Bullet Vectors. | |
| Vector3 & | operator= (const cAudio::cVector3 &Vec) |
| Assignment operator to convert from cAudio Vectors. | |
| Vector3 & | operator= (const Ogre::Vector3 &Vec) |
| Assignment operator to convert from Ogre Vectors. | |
| bool | operator== (const btVector3 &Vec) const |
| Equality Comparison Operator. | |
| bool | operator== (const Ogre::Vector3 &Vec) const |
| Equality Comparison Operator. | |
| bool | operator== (const cAudio::cVector3 &Vec) const |
| Equality Comparison Operator. | |
| bool | operator== (const Mezzanine::Vector3 &Vec) const |
| Equality Comparison Operator. | |
| Real | operator[] (const StandardAxis &Axis) const |
| Real & | operator[] (const Whole &Axis) |
| Real & | operator[] (const StandardAxis &Axis) |
| Real | operator[] (const Whole &Axis) const |
| virtual void | ProtoDeSerialize (const xml::Node &OneNode) |
| Take the data stored in an XML and overwrite this instance of this object with it. | |
| virtual void | ProtoSerialize (xml::Node &CurrentRoot) const |
| Convert this class to an xml::Node ready for serialization. | |
| void | SetValues (const Real &X, const Real &Y, const Real &Z) |
| Manually sets all the members of this vector3. | |
| Real | SquaredDistance (const Vector3 &OtherVec) const |
| Gets the squared distance between this and another vector. | |
| Real | SquaredLength () const |
| Gets the length of this vector squared. | |
| void | Zero () |
| Sets all the members of this vector3 to zero. | |
Static Public Member Functions | |
| static Vector3 | Neg_Unit_X () |
| Gets a vector representing the negative X unit of a vector. | |
| static Vector3 | Neg_Unit_Y () |
| Gets a vector representing the negative Y unit of a vector. | |
| static Vector3 | Neg_Unit_Z () |
| Gets a vector representing the negative Z unit of a vector. | |
| static String | SerializableName () |
| Get the name of the the XML tag this class will leave behind as its instances are serialized. | |
| static Vector3 | Unit_X () |
| Gets a vector representing the X unit of a Vector3. | |
| static Vector3 | Unit_Y () |
| Gets a vector representing the Y unit of a vector. | |
| static Vector3 | Unit_Z () |
| Gets a vector representing the Z unit of a vector. | |
| static Vector3 | UnitOnAxis (StandardAxis Axis) |
| Get a Unit Vector along the given Axis. | |
Public Attributes | |
| Real | X |
| Coordinate on the X vector. | |
| Real | Y |
| Coordinate on the Y vector. | |
| Real | Z |
| Coordinate on the Z vector. | |
This is used to represent a point in space, or a vector through space.
This contains an X, Y and a Z value used to represent coordinates. This also has a number of facilities to make converting from Physics subsystem vectors or graphics subsystems as easy as possible
| Mezzanine::Vector3::Vector3 | ( | ) |
Default Constructor.
Basic all zero initialization constructor.
Definition at line 114 of file vector3.cpp.
Real value Constructor.
Constructor that sets all three vectors.
| X | Coordinate on the X vector. |
| Y | Coordinate on the Y vector. |
| Z | Coordinate on the Z vector. |
Definition at line 119 of file vector3.cpp.
| Mezzanine::Vector3::Vector3 | ( | const Ogre::Vector3 & | Vec | ) | [explicit] |
Ogre Value Constructor.
Constructor that sets all values to match the Ogre vector.
| Vec | The vector to be copied to make this vector. |
Definition at line 124 of file vector3.cpp.
| Mezzanine::Vector3::Vector3 | ( | const btVector3 & | Vec | ) | [explicit] |
Bullet Value Constructor.
Constructor that sets all values to match the Bullet vector.
| Vec | The vector to be copied to make this vector. |
Definition at line 127 of file vector3.cpp.
| Mezzanine::Vector3::Vector3 | ( | const cAudio::cVector3 & | Vec | ) | [explicit] |
cAudio Value Constructor.
Constructor that sets all values to match the cAudio vector.
| Vec | The vector to be copied to make this vector. |
Definition at line 130 of file vector3.cpp.
| Mezzanine::Vector3::Vector3 | ( | const Mezzanine::Vector3 & | Vec | ) |
Copy Constructor.
| Vec | The other Mezzanine::Vector3 to copy to make this one. |
Definition at line 133 of file vector3.cpp.
| Mezzanine::Vector3::Vector3 | ( | xml::Node | OneNode | ) | [explicit] |
Deserializing constructor.
| Vec | The other Mezzanine::Vector3 to copy to make this one. |
Definition at line 137 of file vector3.cpp.
This is used to calculate the crossproduct of this and another vector.
This creates a third vector, which should be on a line perpendicular to lines that contain the origin and the other vectors
Thanks to the guys at Ogre3d for the well written version of this function that we based this on.
| Vec | the Vector to work with to create the cross product |
Definition at line 334 of file vector3.cpp.
Gets the distance between this and another vector.
This uses a 3d extension of pythagoras thereom to calculate the distance between this Vector3 and another.
| OtherVec | This is the other point to measure the distance to. |
Definition at line 389 of file vector3.cpp.
This is used to calculate the dotproduct of this and another vector.
This calculates the sum of the products of X, Y and Z.
Thanks to the guys at Ogre3d for the well written version of this function that we based this on.
| Vec | The vector to work with to create the cross product |
Definition at line 343 of file vector3.cpp.
| void Mezzanine::Vector3::ExtractBulletVector3 | ( | const btVector3 & | temp | ) |
Copies an existing Bullet vector3.
This function will copy the values stored in an existing Bullet vector3 and set the values of this class to be the same.
| temp | The vector3 to be extracted. |
Definition at line 482 of file vector3.cpp.
| void Mezzanine::Vector3::ExtractcAudioVector3 | ( | const cAudio::cVector3 & | temp | ) |
Copies an existing cAudio vector3.
This function will copy the values stored in an existing cAudio vector3 and set the values of this class to be the same.
| temp | The vector3 to be extracted. |
Definition at line 514 of file vector3.cpp.
| void Mezzanine::Vector3::ExtractOgreVector3 | ( | const Ogre::Vector3 & | temp | ) |
Copies an existing Ogre vector3.
This function will copy the values stored in an existing Ogre vector3 and set the values of this class to be the same.
| temp | The vector3 to be extracted. |
Definition at line 498 of file vector3.cpp.
Definition at line 98 of file vector3.cpp.
Definition at line 84 of file vector3.cpp.
| Real & Mezzanine::Vector3::GetAxisValue | ( | const StandardAxis & | Axis | ) |
Get The value associate with a certain Axis in such a way that it can readily be assigned in this Vector3.
| Axis | Which axis to retrieve. |
Definition at line 87 of file vector3.cpp.
| Real Mezzanine::Vector3::GetAxisValue | ( | const StandardAxis & | Axis | ) | const |
Get The value associate with a certain Axis.
| Axis | Which axis to retrieve. |
Definition at line 73 of file vector3.cpp.
| btVector3 Mezzanine::Vector3::GetBulletVector3 | ( | ) | const |
Gets a Bullet vector3.
Creates a Bullet vector3 with values equal to this class and returns it.
Definition at line 472 of file vector3.cpp.
| cAudio::cVector3 Mezzanine::Vector3::GetcAudioVector3 | ( | ) | const |
Gets a cAudio vector3.
Creates a cAudio vector3 with values equal to this class and returns it.
Definition at line 505 of file vector3.cpp.
This will get the direction between two points.
This returns the direction expressed as a vector between this vector and another provided vector. The vector the results vector is relative to this vector.
| Destination | The point in space to determine the direction for. |
Definition at line 371 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::GetNormal | ( | ) | const |
This returns the normal for this relative to the origin.
This will return a vector that is 1 unit in away from the origin, if a line were starting and the origin it would pass through both the normal and the original point.
Definition at line 360 of file vector3.cpp.
| Ogre::Vector3 Mezzanine::Vector3::GetOgreVector3 | ( | ) | const |
Gets a Ogre vector3.
Creates a Ogre vector3 with values equal to this class and returns it.
Definition at line 489 of file vector3.cpp.
| Quaternion Mezzanine::Vector3::GetRotationToAxis | ( | const Vector3 & | Axis, |
| const Vector3 & | FallBackAxis = Vector3() |
||
| ) | const |
Gets the rotation needed to rotate this vector as an axis to another axis.
| Axis | The target axis to rotate to. |
Definition at line 414 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::Inverse | ( | ) |
This will inverse the reals in the vector.
This function will inverse all the reals in the vector.
Definition at line 378 of file vector3.cpp.
| StandardAxis Mezzanine::Vector3::IsStandardUnitAxis | ( | ) | const |
Get a Unit Vector along the given Axis.
Definition at line 173 of file vector3.cpp.
| bool Mezzanine::Vector3::IsZeroLength | ( | ) | const |
Checks to see if the length of this vector is zero.
Definition at line 409 of file vector3.cpp.
| Real Mezzanine::Vector3::Length | ( | ) | const |
Gets the length of this vector.
Definition at line 399 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::Neg_Unit_X | ( | ) | [static] |
Gets a vector representing the negative X unit of a vector.
Definition at line 153 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::Neg_Unit_Y | ( | ) | [static] |
Gets a vector representing the negative Y unit of a vector.
Definition at line 156 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::Neg_Unit_Z | ( | ) | [static] |
Gets a vector representing the negative Z unit of a vector.
Definition at line 159 of file vector3.cpp.
| Vector3 & Mezzanine::Vector3::Normalize | ( | ) |
This will change this point into it's own normal relative to the origin.
This will change this vector into one that is the same direction from the origin, but only one unit a away.
Definition at line 348 of file vector3.cpp.
| bool Mezzanine::Vector3::operator!= | ( | const cAudio::cVector3 & | Vec | ) | const |
Inequality Comparison Operator.
Returns true if X!=x, Y!=y or Z!=z. If all of those match this returns false.
| Vec | This is an cAudio::cVector3 that needs to be compared with this. |
Definition at line 268 of file vector3.cpp.
| bool Mezzanine::Vector3::operator!= | ( | const Mezzanine::Vector3 & | Vec | ) | const |
Inequality Comparison Operator.
Returns true if X!=X, Y!=Y or Z!=Z. If all of those match this returns false.
| Vec | This is the other Mezzanine::Vector3. |
Definition at line 259 of file vector3.cpp.
| bool Mezzanine::Vector3::operator!= | ( | const btVector3 & | Vec | ) | const |
Inequality Comparison Operator.
Returns true if X!=getX(), Y!=getY() or Z!=getZ(). If all of those match this returns false.
| Vec | This is an btVector3 that needs to be compared with this. |
Definition at line 262 of file vector3.cpp.
| bool Mezzanine::Vector3::operator!= | ( | const Ogre::Vector3 & | Vec | ) | const |
Inequality Comparison Operator.
Returns true if X!=x, Y!=y or Z!=z. If all of those match this returns false.
| Vec | This is an Ogre::Vector3 that needs to be compared with this. |
Definition at line 265 of file vector3.cpp.
Multiplaction Operator.
Allows for multiplaction from a Mezzanine::Vector3
| Vec | This is the other Mezzanine::Vector3 |
Definition at line 280 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::operator* | ( | const btVector3 & | Vec | ) | const |
Bullet Multiplication Operator.
Allows for multiplication between a Mezzanine::Vector3 and a btVector3
| Vec | This is the btVector3 to be multiplied |
Definition at line 295 of file vector3.cpp.
Scaling by multiplication.
This Multiplies X, Y and Z by scalar
| scalar | This is the amount to scale the Vector3 by |
Definition at line 220 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::operator* | ( | const Ogre::Vector3 & | Vec | ) | const |
Ogre Multiplication Operator.
Allows for multiplying between a Mezzanine::Vector3 and a Ogre::Vector3
| Vec | This is the Ogre::Vector3 to be multiplied |
Definition at line 310 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::operator* | ( | const cAudio::cVector3 & | Vec | ) | const |
cAudio Multiplication Operator
Allows for multiplying between a Mezzanine::Vector3 and a cAudio::cVector3
| Vec | This is the cAudio::cVector3 to be multiplied |
Definition at line 325 of file vector3.cpp.
Scaling by multiplication.
This Multiplies X, Y and Z by scalar and stores the changes in this Vector3.
| scalar | This is the amount to scale the Vector3 by. |
Definition at line 228 of file vector3.cpp.
Addition Operator.
Allows for addition from a Mezzanine::Vector3
| Vec | This is the other Mezzanine::Vector3 |
Definition at line 274 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::operator+ | ( | const btVector3 & | Vec | ) | const |
Bullet Addition Operator.
Allows for addition between a Mezzanine::Vector3 and a btVector3
| Vec | This is the btVector3 to be added |
Definition at line 289 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::operator+ | ( | const Ogre::Vector3 & | Vec | ) | const |
Ogre Addition Operator.
Allows for addition between a Mezzanine::Vector3 and a Ogre::Vector3
| Vec | This is the Ogre::Vector3 to be added |
Definition at line 304 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::operator+ | ( | const cAudio::cVector3 & | Vec | ) | const |
cAudio Addition Operator
Allows for addition between a Mezzanine::Vector3 and a cAudio::cVector3
| Vec | This is the cAudio::cVector3 to be added |
Definition at line 319 of file vector3.cpp.
Subraction Operator.
Allows for subtraction from a Mezzanine::Vector3
| Vec | This is the other Mezzanine::Vector3 |
Definition at line 277 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::operator- | ( | const btVector3 & | Vec | ) | const |
Bullet Subtraction Operator.
Allows for subtraction between a Mezzanine::Vector3 and a btVector3
| Vec | This is the btVector3 to be subtracted |
Definition at line 292 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::operator- | ( | ) |
Additive Inverse Operator.
Returns the opposite Vector3 relative to 0,0,0
Definition at line 215 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::operator- | ( | const Ogre::Vector3 & | Vec | ) | const |
Ogre Subtraction Operator.
Allows for subtraction between a Mezzanine::Vector3 and a Ogre::Vector3
| Vec | This is the Ogre::Vector3 to be subtracted |
Definition at line 307 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::operator- | ( | const cAudio::cVector3 & | Vec | ) | const |
cAudio Subtraction Operator
Allows for subtraction between a Mezzanine::Vector3 and a cAudio::cVector3
| Vec | This is the cAudio::cVector3 to be subtracted |
Definition at line 322 of file vector3.cpp.
Division Operator.
Allows for division from a Mezzanine::Vector3
| Vec | This is the other Mezzanine::Vector3 |
Definition at line 283 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::operator/ | ( | const btVector3 & | Vec | ) | const |
Bullet Division Operator.
Allows for division between a Mezzanine::Vector3 and a btVector3
| Vec | This is the btVector3 to be divided |
Definition at line 298 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::operator/ | ( | const cAudio::cVector3 & | Vec | ) | const |
cAudio Division Operator
Allows for division between a Mezzanine::Vector3 and a cAudio::cVector3
| Vec | This is the cAudio::cVector3 to be divided |
Definition at line 328 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::operator/ | ( | const Ogre::Vector3 & | Vec | ) | const |
Ogre Division Operator.
Allows for division between a Mezzanine::Vector3 and a Ogre::Vector3
| Vec | This is the Ogre::Vector3 to be divided |
Definition at line 313 of file vector3.cpp.
Scaling by Division.
This Diisionn X, Y and Z by scalar
| scalar | This is the amount to scale the Vector3 by |
Definition at line 223 of file vector3.cpp.
Scaling by Division.
This Division X, Y and Z by scalar and and stores the changes in this Vector3.
| scalar | This is the amount to scale the Vector3 by |
Definition at line 236 of file vector3.cpp.
| Vector3 & Mezzanine::Vector3::operator= | ( | const btVector3 & | Vec | ) |
Assignment operator to convert from Bullet Vectors.
This copies the x,y and z values from the bullet into this vector
| Vec | This is a btVector3 that will be copied |
Definition at line 192 of file vector3.cpp.
| Vector3 & Mezzanine::Vector3::operator= | ( | const cAudio::cVector3 & | Vec | ) |
Assignment operator to convert from cAudio Vectors.
This copies the x,y and z values from the bullet into this vector
| Vec | This is a cAudio::cVector3 that will be copied. |
Definition at line 206 of file vector3.cpp.
| Vector3 & Mezzanine::Vector3::operator= | ( | const Ogre::Vector3 & | Vec | ) |
Assignment operator to convert from Ogre Vectors.
This copies the x,y and z values from the bullet into this vector
| Vec | This is a Ogre::Vector3 that will be copied. |
Definition at line 199 of file vector3.cpp.
| bool Mezzanine::Vector3::operator== | ( | const Mezzanine::Vector3 & | Vec | ) | const |
Equality Comparison Operator.
Returns true if X==X, Y==Y and Z==Z. If any of those do not match this returns false.
| Vec | This is the other Mezzanine::Vector3. |
Definition at line 246 of file vector3.cpp.
| bool Mezzanine::Vector3::operator== | ( | const cAudio::cVector3 & | Vec | ) | const |
Equality Comparison Operator.
Returns true if X==x, Y==y and Z==z. If any of those do not match this returns false.
| Vec | This is an cAudio::cVector3 that needs to be compared with this. |
Definition at line 255 of file vector3.cpp.
| bool Mezzanine::Vector3::operator== | ( | const btVector3 & | Vec | ) | const |
Equality Comparison Operator.
Returns true if X==getX(), Y==getY() and Z==getZ(). If any of those do not match this returns false.
| Vec | This is an btVector3 that needs to be compared with this. |
Definition at line 249 of file vector3.cpp.
| bool Mezzanine::Vector3::operator== | ( | const Ogre::Vector3 & | Vec | ) | const |
Equality Comparison Operator.
Returns true if X==x, Y==y and Z==z. If any of those do not match this returns false.
| Vec | This is an Ogre::Vector3 that needs to be compared with this. |
Definition at line 252 of file vector3.cpp.
Definition at line 110 of file vector3.cpp.
Definition at line 104 of file vector3.cpp.
| Real Mezzanine::Vector3::operator[] | ( | const StandardAxis & | Axis | ) | const |
Definition at line 101 of file vector3.cpp.
| Real & Mezzanine::Vector3::operator[] | ( | const StandardAxis & | Axis | ) |
Definition at line 107 of file vector3.cpp.
| void Mezzanine::Vector3::ProtoDeSerialize | ( | const xml::Node & | OneNode | ) | [virtual] |
Take the data stored in an XML and overwrite this instance of this object with it.
| OneNode | and xml::Node containing the data. |
Definition at line 546 of file vector3.cpp.
| void Mezzanine::Vector3::ProtoSerialize | ( | xml::Node & | CurrentRoot | ) | const [virtual] |
Convert this class to an xml::Node ready for serialization.
| CurrentRoot | The point in the XML hierarchy that all this vector3 should be appended to. |
Definition at line 523 of file vector3.cpp.
| String Mezzanine::Vector3::SerializableName | ( | ) | [static] |
Get the name of the the XML tag this class will leave behind as its instances are serialized.
Definition at line 563 of file vector3.cpp.
Manually sets all the members of this vector3.
| X | Value to set for X. |
| Y | Value to set for Y. |
| Z | Value to set for Z. |
Definition at line 463 of file vector3.cpp.
Gets the squared distance between this and another vector.
| OtherVec | This is the other point to measure the distance to. |
Definition at line 394 of file vector3.cpp.
| Real Mezzanine::Vector3::SquaredLength | ( | ) | const |
Gets the length of this vector squared.
Definition at line 404 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::Unit_X | ( | ) | [static] |
Gets a vector representing the X unit of a Vector3.
Definition at line 144 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::Unit_Y | ( | ) | [static] |
Gets a vector representing the Y unit of a vector.
Definition at line 147 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::Unit_Z | ( | ) | [static] |
Gets a vector representing the Z unit of a vector.
Definition at line 150 of file vector3.cpp.
| Vector3 Mezzanine::Vector3::UnitOnAxis | ( | StandardAxis | Axis | ) | [static] |
Get a Unit Vector along the given Axis.
| Axis | The StandardAxis correlating to the Unit Vector you are retrievinf |
Definition at line 162 of file vector3.cpp.
1.7.3