blob: 8ad2638010ea3d13721935acbffc2757fe5d2c6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include <stdbool.h>
#include <stdint.h>
typedef struct {
float x, y;
} v2;
typedef struct {
int x, y;
} v2i;
float v2_cross(v2 a, v2 b);
float v2_len(v2 a);
float v2_square_dist(v2 a, v2 b);
v2 v2_add(v2 a, v2 b);
uint32_t cast_ray(v2 pos, float theta, v2* hit_pos);
|