Alchemy
Loading...
Searching...
No Matches

fixed_point_position.h

Go to the documentation of this file.
1#ifndef ALCHEMY_FIXED_POINT_POSITION_H
2#define ALCHEMY_FIXED_POINT_POSITION_H
3
4/// @file
5/// FixedPointPosition, a position in 16.16 fixed point.
6
7#include "types.h"
8#include "static_assert.h"
9
10/// A position in three coordinates, each in 16.16 fixed point.
12 s32 x; ///< 16.16 fixed point
13 s32 y; ///< 16.16 fixed point
14 s32 z; ///< 16.16 fixed point
15};
16
17STATIC_ASSERT(sizeof(struct FixedPointPosition) == 0x0c);
21
22#endif
STATIC_ASSERT, a compile-time check that emits nothing.
#define STATIC_ASSERT(condition)
C89 permits repeated extern declarations of the same array.
#define offsetof(type, member)
Definition stddef.h:19
A position in three coordinates, each in 16.16 fixed point.
s32 z
16.16 fixed point
s32 x
16.16 fixed point
s32 y
16.16 fixed point
The integer types, TRUE, UNUSED and the fixed-address macros.
signed int s32
Definition types.h:14