A 2D column vector.
More...
#include <b2Math.h>
A 2D column vector.
Definition at line 52 of file b2Math.h.
Default constructor does nothing (for performance).
Definition at line 55 of file b2Math.h.
Construct using coordinates.
Definition at line 58 of file b2Math.h.
bool b2Vec2::IsValid |
( |
| ) |
const |
|
inline |
Does this vector contain finite coordinates?
Definition at line 128 of file b2Math.h.
Get the length of this vector (the norm).
Definition at line 100 of file b2Math.h.
float32 b2Vec2::LengthSquared |
( |
| ) |
const |
|
inline |
Get the length squared. For performance, use this instead of b2Vec2::Length (if possible).
Definition at line 107 of file b2Math.h.
Convert this vector into a unit vector. Returns the length.
Definition at line 113 of file b2Math.h.
Read from and indexed element.
Definition at line 70 of file b2Math.h.
Write to an indexed element.
Definition at line 76 of file b2Math.h.
Multiply this vector by a scalar.
Definition at line 94 of file b2Math.h.
Add a vector to this vector.
Definition at line 82 of file b2Math.h.
b2Vec2 b2Vec2::operator- |
( |
| ) |
const |
|
inline |
Negate this vector.
Definition at line 67 of file b2Math.h.
Subtract a vector from this vector.
Definition at line 88 of file b2Math.h.
Set this vector to some specified coordinates.
Definition at line 64 of file b2Math.h.
Set this vector to all zeros.
Definition at line 61 of file b2Math.h.
Get the skew vector such that dot(skew_vec, other) == cross(vec, other)
Definition at line 134 of file b2Math.h.
The documentation for this struct was generated from the following file: