diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-04-17 14:26:19 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-04-17 14:26:19 -0400 |
commit | cd7cba285144211c5ea1f4573ad729555923dab1 (patch) | |
tree | 10f500a3c3fbbeba04778943fad36f97f6b2242f /libdimension/plane.c | |
parent | bafe01580d1470f703a95a434b38998843440cd0 (diff) | |
download | dimension-cd7cba285144211c5ea1f4573ad729555923dab1.tar.xz |
Rename dmnsn_matrix_*_mul() to dmnsn_transform_*().
Diffstat (limited to 'libdimension/plane.c')
-rw-r--r-- | libdimension/plane.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/plane.c b/libdimension/plane.c index e475c46..1680aa0 100644 --- a/libdimension/plane.c +++ b/libdimension/plane.c @@ -58,14 +58,14 @@ dmnsn_plane_intersection_fn(const dmnsn_object *plane, dmnsn_line line, { dmnsn_vector *normal = plane->ptr; - dmnsn_line line_trans = dmnsn_matrix_line_mul(plane->trans_inv, line); + dmnsn_line line_trans = dmnsn_transform_line(plane->trans_inv, line); double den = dmnsn_vector_dot(line_trans.n, *normal); if (den != 0.0) { double t = -dmnsn_vector_dot(line_trans.x0, *normal)/den; if (t >= 0.0) { intersection->ray = line; intersection->t = t; - intersection->normal = dmnsn_matrix_normal_mul(plane->trans, *normal); + intersection->normal = dmnsn_transform_normal(plane->trans, *normal); intersection->texture = plane->texture; intersection->interior = plane->interior; return true; |