summaryrefslogtreecommitdiffstats
path: root/libdimension/torus.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/torus.c')
-rw-r--r--libdimension/torus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/torus.c b/libdimension/torus.c
index 852102e..9eb2323 100644
--- a/libdimension/torus.c
+++ b/libdimension/torus.c
@@ -120,9 +120,9 @@ dmnsn_torus_intersection_fn(const dmnsn_object *torus, dmnsn_line l,
dmnsn_vector p = dmnsn_line_point(l, t);
dmnsn_vector center = dmnsn_vector_mul(
payload->major,
- dmnsn_vector_normalize(dmnsn_new_vector(p.x, 0.0, p.z))
+ dmnsn_vector_normalized(dmnsn_new_vector(p.x, 0.0, p.z))
);
- dmnsn_vector normal = dmnsn_vector_normalize(dmnsn_vector_sub(p, center));
+ dmnsn_vector normal = dmnsn_vector_normalized(dmnsn_vector_sub(p, center));
intersection->ray = l;
intersection->t = t;
intersection->normal = normal;