diff options
-rw-r--r-- | 3dmath.c | 4 | ||||
-rw-r--r-- | 3dmath.h | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -19,7 +19,9 @@ normalize(float x[3]) { } float -sphere_intersect(float y[3], float r[3], const float s[3], const float d[3], const float c[3], float R) { +sphere_intersect(float* restrict y, float* restrict r, + const float* restrict s, const float* restrict d, + const float* restrict c, float R) { int i; float D, n[3], t, v[3]; @@ -1,3 +1,6 @@ float dot(const float x[3], const float y[3]); void normalize(float x[3]); -float sphere_intersect(float y[3], float r[3], const float s[3], const float d[3], const float c[3], float R); + +float sphere_intersect(float* restrict y, float* restrict r, + const float* restrict s, const float* restrict d, + const float* restrict c, float R); |