Kore 3
Loading...
Searching...
No Matches
vector.h
Go to the documentation of this file.
1#ifndef KORE_MATH_VECTOR_HEADER
2#define KORE_MATH_VECTOR_HEADER
3
4#include "core.h"
5
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14typedef struct kore_float2 {
15 float x;
16 float y;
18
19typedef struct kore_float3 {
20 float x;
21 float y;
22 float z;
24
25typedef struct kore_float4 {
26 float x;
27 float y;
28 float z;
29 float w;
31
32typedef struct kore_int2 {
33 int32_t x;
34 int32_t y;
35} kore_int2;
36
37typedef struct kore_int3 {
38 int32_t x;
39 int32_t y;
40 int32_t z;
41} kore_int3;
42
43typedef struct kore_int4 {
44 int32_t x;
45 int32_t y;
46 int32_t z;
47 int32_t w;
48} kore_int4;
49
50typedef struct kore_uint2 {
51 uint32_t x;
52 uint32_t y;
54
55typedef struct kore_uint3 {
56 uint32_t x;
57 uint32_t y;
58 uint32_t z;
60
61typedef struct kore_uint4 {
62 uint32_t x;
63 uint32_t y;
64 uint32_t z;
65 uint32_t w;
67
68#ifdef __cplusplus
69}
70#endif
71
72#endif
Just a few very simple additions to math.h.
Definition vector.h:14
Definition vector.h:19
Definition vector.h:25
Definition vector.h:32
Definition vector.h:37
Definition vector.h:43
Definition vector.h:50
Definition vector.h:55
Definition vector.h:61