diff options
Diffstat (limited to 'libdimension/cone.c')
-rw-r--r-- | libdimension/cone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/cone.c b/libdimension/cone.c index 40e8f12..87f1fde 100644 --- a/libdimension/cone.c +++ b/libdimension/cone.c @@ -111,7 +111,7 @@ dmnsn_cone_intersection_fn(const dmnsn_object *cone, dmnsn_line l, } if (t >= 0.0 && p.y > -1.0 && p.y < 1.0) { - dmnsn_vector norm = dmnsn_vector_normalize( + dmnsn_vector norm = dmnsn_vector_normalized( dmnsn_new_vector(p.x, -(r2 - r1)*sqrt(p.x*p.x + p.z*p.z)/2.0, p.z) ); intersection->ray = l; |