summaryrefslogtreecommitdiffstats
path: root/libdimension/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/object.c')
-rw-r--r--libdimension/object.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdimension/object.c b/libdimension/object.c
index 3cf68c7..981e535 100644
--- a/libdimension/object.c
+++ b/libdimension/object.c
@@ -21,12 +21,12 @@
#include "dimension.h"
dmnsn_vector
-dmnsn_matrix_normal_mul(dmnsn_matrix trans, dmnsn_vector normal)
+dmnsn_transform_normal(dmnsn_matrix trans, dmnsn_vector normal)
{
return dmnsn_vector_normalize(
dmnsn_vector_sub(
- dmnsn_matrix_vector_mul(trans, normal),
- dmnsn_matrix_vector_mul(trans, dmnsn_zero)
+ dmnsn_transform_vector(trans, normal),
+ dmnsn_transform_vector(trans, dmnsn_zero)
)
);
}
@@ -62,7 +62,7 @@ void
dmnsn_object_precompute(dmnsn_object *object)
{
object->bounding_box
- = dmnsn_matrix_bounding_box_mul(object->trans, object->bounding_box);
+ = dmnsn_transform_bounding_box(object->trans, object->bounding_box);
object->trans_inv = dmnsn_matrix_inverse(object->trans);
if (object->texture) {
object->texture->trans