A 2D column vector with 3 elements.
More...
#include <b2_math.h>
A 2D column vector with 3 elements.
Definition at line 132 of file b2_math.h.
◆ b2Vec3() [1/2]
Default constructor does nothing (for performance).
Definition at line 135 of file b2_math.h.
◆ b2Vec3() [2/2]
b2Vec3::b2Vec3 |
( |
float |
xIn, |
|
|
float |
yIn, |
|
|
float |
zIn |
|
) |
| |
|
inline |
Construct using coordinates.
Definition at line 138 of file b2_math.h.
◆ operator*=()
void b2Vec3::operator*= |
( |
float |
s | ) |
|
|
inline |
Multiply this vector by a scalar.
Definition at line 162 of file b2_math.h.
◆ operator+=()
Add a vector to this vector.
Definition at line 150 of file b2_math.h.
◆ operator-()
b2Vec3 b2Vec3::operator- |
( |
| ) |
const |
|
inline |
Negate this vector.
Definition at line 147 of file b2_math.h.
◆ operator-=()
Subtract a vector from this vector.
Definition at line 156 of file b2_math.h.
◆ Set()
void b2Vec3::Set |
( |
float |
x_, |
|
|
float |
y_, |
|
|
float |
z_ |
|
) |
| |
|
inline |
Set this vector to some specified coordinates.
Definition at line 144 of file b2_math.h.
◆ SetZero()
Set this vector to all zeros.
Definition at line 141 of file b2_math.h.
The documentation for this struct was generated from the following file: