blob: fe6c56363c5735f325063cd335c52f455b7c58f5 (
plain)
1
2
3
4
5
6
7
8
9
|
#pragma once
#include "vector.h"
typedef struct { double x, y, z; } Vec3;
static inline Vec3 vec3_add(Vec3 a, Vec3 b);
static inline Vec3 vec3_sub(Vec3 a, Vec3 b);
static inline Vec3 vec3_mul_scalar(Vec3 a, double s);
static inline double
|