Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Position.h File Reference

Entity coordinate types. More...

#include "maths/Fixed.h"
Include dependency graph for Position.h:
This graph shows which files directly or indirectly include this file:

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

Typedef Documentation

◆ entity_angle_t

Rotations (measured in radians)

◆ entity_pos_t

Positions and distances (measured in metres)