SUMO - Simulation of Urban MObility

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.
 Vec3 ()
 Default constructor.
 Vec3 (float a_x, float a_y, float a_z)
 Construct from three elements.

Data Fields

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

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

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:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines