Box2D 2.4.1
A 2D physics engine for games
Loading...
Searching...
No Matches
b2Vec3 Struct Reference

A 2D column vector with 3 elements. More...

#include <b2_math.h>

Public Member Functions

 b2Vec3 ()=default
 Default constructor does nothing (for performance).
 b2Vec3 (float xIn, float yIn, float zIn)
 Construct using coordinates.
void SetZero ()
 Set this vector to all zeros.
void Set (float x_, float y_, float z_)
 Set this vector to some specified coordinates.
b2Vec3 operator- () const
 Negate this vector.
void operator+= (const b2Vec3 &v)
 Add a vector to this vector.
void operator-= (const b2Vec3 &v)
 Subtract a vector from this vector.
void operator*= (float s)
 Multiply this vector by a scalar.

Public Attributes

float x
float y
float z

Detailed Description

A 2D column vector with 3 elements.


The documentation for this struct was generated from the following file:
  • /home/buildozer/aports/community/box2d/src/box2d-2.4.2/include/box2d/b2_math.h