HoverRace  2.0
Classes | Namespaces | Macros | Typedefs | Functions | Variables
WorldCoordinates.h File Reference
#include "MR_Types.h"
+ Include dependency graph for WorldCoordinates.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MR_2DCoordinate
 
class  MR_3DCoordinate
 

Namespaces

 HoverRace
 
 HoverRace::Parcel
 

Macros

#define MR_2PI   4096
 
#define MR_DllDeclare
 
#define MR_NORMALIZE_ANGLE(pAngle)   ( (MR_Angle) (( 2*MR_2PI+(pAngle) )%MR_2PI) )
 
#define MR_PI   2048
 
#define MR_TRIGO_FRACT   16384
 
#define MR_TRIGO_SHIFT   14
 
#define RAD_2_MR_ANGLE(pAngle)   ((MR_Angle)( (static_cast<unsigned int>(pAngle*static_cast<double>(MR_2PI)*0.5/3.1415926536)+MR_2PI)%static_cast<unsigned int>(MR_2PI) ))
 

Typedefs

using MR_Angle = MR_Int16
 
using MR_SimulationTime = MR_Int32
 

Functions

MR_DllDeclare void MR_InitTrigoTables ()
 
std::ostream & operator<< (std::ostream &os, const MR_2DCoordinate &c)
 
std::ostream & operator<< (std::ostream &os, const MR_3DCoordinate &c)
 

Variables

MR_DllDeclare MR_Int16 MR_Cos [MR_2PI]
 
MR_DllDeclare MR_Int16 MR_Sin [MR_2PI]
 

Macro Definition Documentation

#define MR_2PI   4096
#define MR_DllDeclare
#define MR_NORMALIZE_ANGLE (   pAngle)    ( (MR_Angle) (( 2*MR_2PI+(pAngle) )%MR_2PI) )
#define MR_PI   2048
#define MR_TRIGO_FRACT   16384
#define MR_TRIGO_SHIFT   14
#define RAD_2_MR_ANGLE (   pAngle)    ((MR_Angle)( (static_cast<unsigned int>(pAngle*static_cast<double>(MR_2PI)*0.5/3.1415926536)+MR_2PI)%static_cast<unsigned int>(MR_2PI) ))

Typedef Documentation

using MR_Angle = MR_Int16

Function Documentation

MR_DllDeclare void MR_InitTrigoTables ( )
std::ostream& operator<< ( std::ostream &  os,
const MR_2DCoordinate c 
)
inline
std::ostream& operator<< ( std::ostream &  os,
const MR_3DCoordinate c 
)
inline

Variable Documentation