Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Typedefs
Position.h File Reference

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...
 

Detailed Description

Entity coordinate types.

The basic unit is the "meter". Terrain tiles are TERRAIN_TILE_SIZE (=4) meters square. To support deterministic computation across CPU architectures and compilers and optimisation settings, the C++ simulation code must not use floating-point arithmetic. We therefore use a fixed-point datatype for representing world positions.

Definition in file Position.h.

Typedef Documentation

Rotations (measured in radians)

Definition at line 41 of file Position.h.

Positions and distances (measured in metres)

Definition at line 36 of file Position.h.