diff options
author | Morten Hustveit <morten.hustveit@gmail.com> | 2014-12-02 21:32:20 -0500 |
---|---|---|
committer | Morten Hustveit <morten.hustveit@gmail.com> | 2014-12-02 21:32:20 -0500 |
commit | 6cee50ceb0d153622b89fb813060419f5985857d (patch) | |
tree | a318e992398959fda8740a348bf5365a67827c27 /3dmath.h | |
parent | a64a0186cdeee9189bd4db1303f82908cfe279a4 (diff) |
Subtract the central sphere, and update the animation to match
Diffstat (limited to '3dmath.h')
-rw-r--r-- | 3dmath.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,8 @@ +#define POW2(x) ((x) * (x)) + float dot(const float x[3], const float y[3]); void normalize(float x[3]); float sphere_intersect(float* restrict y, float* restrict r, const float* restrict s, const float* restrict d, - const float* restrict c, float R); + const float* restrict c, float R, int invert); |