blob: 72e6523d83d22ee5e00279c91d1718d9b6be9598 (
plain)
1
2
3
4
5
6
7
8
9
|
#pragma once
#include "vector.h"
typedef struct { double x, y, z; } Vec3;
static inline double vec3_magnitude(Vec3 v);
static inline Vec3 vec3_diff(Vec3 a, Vec3 b);
static inline Vec3 vec3_normalize(Vec3 v);
static inline Vec3 vec3_mul(Vec3 v, double n);
|