Skip to content

Instantly share code, notes, and snippets.

#include <assert.h>
#include <math.h>
#include <vector>
// You can provide your own vec3 type, but it must expose
// the following interface.
struct vec3
{
float x,y,z;
};