This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <math.h> | |
#include <stdint.h> | |
#include <libdragon.h> | |
typedef double vec3[3]; | |
const double epsl = 0.0000005; | |
// vector dot product | |
static double dot(vec3 v0, vec3 v1) { | |
double x2 = v0[0] * v1[0]; |