Public Member Functions | Public Attributes
b2Vec3 Struct Reference

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

#include <b2Math.h>

List of all members.

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

Detailed Description

A 2D column vector with 3 elements.

Definition at line 144 of file b2Math.h.


Constructor & Destructor Documentation

b2Vec3::b2Vec3 ( ) [inline]

Default constructor does nothing (for performance).

Definition at line 147 of file b2Math.h.

b2Vec3::b2Vec3 ( float32  x,
float32  y,
float32  z 
) [inline]

Construct using coordinates.

Definition at line 150 of file b2Math.h.


Member Function Documentation

void b2Vec3::operator*= ( float32  s) [inline]

Multiply this vector by a scalar.

Definition at line 174 of file b2Math.h.

void b2Vec3::operator+= ( const b2Vec3 v) [inline]

Add a vector to this vector.

Definition at line 162 of file b2Math.h.

b2Vec3 b2Vec3::operator- ( ) const [inline]

Negate this vector.

Definition at line 159 of file b2Math.h.

void b2Vec3::operator-= ( const b2Vec3 v) [inline]

Subtract a vector from this vector.

Definition at line 168 of file b2Math.h.

void b2Vec3::Set ( float32  x_,
float32  y_,
float32  z_ 
) [inline]

Set this vector to some specified coordinates.

Definition at line 156 of file b2Math.h.

void b2Vec3::SetZero ( ) [inline]

Set this vector to all zeros.

Definition at line 153 of file b2Math.h.


Member Data Documentation

Definition at line 179 of file b2Math.h.

Definition at line 179 of file b2Math.h.

Definition at line 179 of file b2Math.h.


The documentation for this struct was generated from the following file:


mvsim
Author(s):
autogenerated on Thu Sep 7 2017 09:27:49