-
Notifications
You must be signed in to change notification settings - Fork 0
/
Position.h
79 lines (68 loc) · 1 KB
/
Position.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#pragma once
#include <stdint.h>
//##############################
//STRUCTS
//##############################
typedef struct Vector2D
{
int32_t x;
int32_t y;
} Vector2D;
typedef struct Vector2Df
{
float x;
float y;
} Vector2Df;
typedef struct Vector2Dd
{
double x;
double y;
} Vector2Dd;
typedef struct Vector2Du
{
unsigned char x;
unsigned char y;
} Vector2Du;
typedef struct Vector3D
{
int32_t x;
int32_t y;
int32_t z;
} Vector3D;
typedef struct Vector3Df
{
float x;
float y;
float z;
} Vector3Df;
typedef struct Vector3Dd
{
double x;
double y;
double z;
} Vector3Dd;
typedef struct Vector3Du
{
unsigned char x;
unsigned char y;
unsigned char z;
} Vector3Du;
typedef struct Rectangle
{
int32_t x;
int32_t y;
int32_t width;
int32_t height;
} Rectangle;
typedef struct RectangleF
{
float x;
float y;
float width;
float height;
} RectangleF;
typedef struct Rotation
{
float angle;
float increase;
} Rotation;