You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
482 B
30 lines
482 B
#pragma once
|
|
#include <stdint.h>
|
|
|
|
#define ONE 4096
|
|
|
|
typedef unsigned char u_char;
|
|
typedef unsigned short u_short;
|
|
typedef unsigned int u_int;
|
|
typedef unsigned long u_long;
|
|
|
|
typedef struct _MATRIX {
|
|
int16_t m[3][3];
|
|
int32_t t[3];
|
|
} MATRIX;
|
|
|
|
typedef struct _VECTOR {
|
|
int32_t vx, vy, vz;
|
|
} VECTOR;
|
|
|
|
typedef struct _SVECTOR {
|
|
int16_t vx, vy, vz, pad;
|
|
} SVECTOR;
|
|
|
|
typedef struct _CVECTOR {
|
|
uint8_t r, g, b, cd;
|
|
} CVECTOR;
|
|
|
|
typedef struct _DVECTOR {
|
|
int16_t vx, vy;
|
|
} DVECTOR;
|