A 2D column vector with 3 elements. More...
#include <b2Math.h>
Public Member Functions | |
| b2Vec3 () | |
| Default constructor does nothing (for performance). | |
| b2Vec3 (float32 x, float32 y, float32 z) | |
| Construct using coordinates. | |
| void | operator*= (float32 s) |
| Multiply this vector by a scalar. | |
| void | operator+= (const b2Vec3 &v) |
| Add a vector to this vector. | |
| b2Vec3 | operator- () const |
| Negate this vector. | |
| void | operator-= (const b2Vec3 &v) |
| Subtract a vector from this vector. | |
| void | Set (float32 x_, float32 y_, float32 z_) |
| Set this vector to some specified coordinates. | |
| void | SetZero () |
| Set this vector to all zeros. | |
Public Attributes | |
| float32 | x |
| float32 | y |
| float32 | z |
| b2Vec3::b2Vec3 | ( | ) | [inline] |
| b2Vec3::b2Vec3 | ( | float32 | x, |
| float32 | y, | ||
| float32 | z | ||
| ) | [inline] |
| void b2Vec3::operator*= | ( | float32 | s | ) | [inline] |
| void b2Vec3::operator+= | ( | const b2Vec3 & | v | ) | [inline] |
| b2Vec3 b2Vec3::operator- | ( | ) | const [inline] |
| void b2Vec3::operator-= | ( | const b2Vec3 & | v | ) | [inline] |
| void b2Vec3::Set | ( | float32 | x_, |
| float32 | y_, | ||
| float32 | z_ | ||
| ) | [inline] |
| void b2Vec3::SetZero | ( | ) | [inline] |