SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Vec3 Struct Reference

Simplify handling of 3 dimensional coordinate. More...

Public Member Functions

Vec3 operator+ (const Vec3 &a_other) const
 Add two vectors and return result. More...
 
 Vec3 ()
 Default constructor. More...
 
 Vec3 (float a_x, float a_y, float a_z)
 Construct from three elements. More...
 

Data Fields

float v [3]
 3 float components for axes or dimensions More...
 

Detailed Description

Simplify handling of 3 dimensional coordinate.

Definition at line 47 of file MemoryTest.cpp.

Constructor & Destructor Documentation

Vec3::Vec3 ( )
inline

Default constructor.

Definition at line 50 of file MemoryTest.cpp.

Referenced by operator+().

Vec3::Vec3 ( float  a_x,
float  a_y,
float  a_z 
)
inline

Construct from three elements.

Definition at line 53 of file MemoryTest.cpp.

References v.

Member Function Documentation

Vec3 Vec3::operator+ ( const Vec3 &  a_other) const
inline

Add two vectors and return result.

Definition at line 61 of file MemoryTest.cpp.

References v, and Vec3().

Field Documentation

float Vec3::v[3]

3 float components for axes or dimensions

Definition at line 68 of file MemoryTest.cpp.

Referenced by BoxesIntersect(), main(), operator+(), and Vec3().


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