A 2D column vector.
More...
#include <b2Math.h>
List of all members.
Detailed Description
A 2D column vector.
Definition at line 53 of file b2Math.h.
Constructor & Destructor Documentation
Default constructor does nothing (for performance).
Definition at line 56 of file b2Math.h.
Construct using coordinates.
Definition at line 59 of file b2Math.h.
Member Function Documentation
Does this vector contain finite coordinates?
Definition at line 129 of file b2Math.h.
Get the length of this vector (the norm).
Definition at line 101 of file b2Math.h.
Get the length squared. For performance, use this instead of b2Vec2::Length (if possible).
Definition at line 108 of file b2Math.h.
Convert this vector into a unit vector. Returns the length.
Definition at line 114 of file b2Math.h.
Read from and indexed element.
Definition at line 71 of file b2Math.h.
Write to an indexed element.
Definition at line 77 of file b2Math.h.
void b2Vec2::operator*= |
( |
float32 |
a | ) |
[inline] |
Multiply this vector by a scalar.
Definition at line 95 of file b2Math.h.
void b2Vec2::operator+= |
( |
const b2Vec2 & |
v | ) |
[inline] |
Add a vector to this vector.
Definition at line 83 of file b2Math.h.
b2Vec2 b2Vec2::operator- |
( |
| ) |
const [inline] |
Negate this vector.
Definition at line 68 of file b2Math.h.
void b2Vec2::operator-= |
( |
const b2Vec2 & |
v | ) |
[inline] |
Subtract a vector from this vector.
Definition at line 89 of file b2Math.h.
Set this vector to some specified coordinates.
Definition at line 65 of file b2Math.h.
Set this vector to all zeros.
Definition at line 62 of file b2Math.h.
Get the skew vector such that dot(skew_vec, other) == cross(vec, other)
Definition at line 135 of file b2Math.h.
Member Data Documentation
The documentation for this struct was generated from the following file: