#pragma once #include "defs.h" typedef struct vec2 { R x, y; } vec2; /// Construct a vector from 2 coordinates. static inline vec2 vec2_make(R x, R y) { return (vec2){x, y}; }