Pyrogenesis
trunk

Entity coordinate types. More...
#include "maths/Fixed.h"
Go to the source code of this file.
Typedefs  
typedef CFixed_15_16  entity_pos_t 
Positions and distances (measured in metres) More...  
typedef CFixed_15_16  entity_angle_t 
Rotations (measured in radians) More...  
Entity coordinate types.
The basic unit is the "meter". To support deterministic computation across CPU architectures and compilers and optimisation settings, the C++ simulation code must not use floatingpoint arithmetic. We therefore use a fixedpoint datatype for representing world positions.
typedef CFixed_15_16 entity_angle_t 
Rotations (measured in radians)
typedef CFixed_15_16 entity_pos_t 
Positions and distances (measured in metres)