#pragma once #include #include 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);