diff options
Diffstat (limited to 'libdimension/dimension')
-rw-r--r-- | libdimension/dimension/geometry.h | 2 | ||||
-rw-r--r-- | libdimension/dimension/object.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/dimension/geometry.h b/libdimension/dimension/geometry.h index 74807f7..ba8f531 100644 --- a/libdimension/dimension/geometry.h +++ b/libdimension/dimension/geometry.h @@ -331,7 +331,7 @@ dmnsn_vector_norm(dmnsn_vector n) /** Return the direction of a vector. */ DMNSN_INLINE dmnsn_vector -dmnsn_vector_normalize(dmnsn_vector n) +dmnsn_vector_normalized(dmnsn_vector n) { /* 1 sqrt, 3 divisions, 3 multiplications, 2 additions */ return dmnsn_vector_div(n, dmnsn_vector_norm(n)); diff --git a/libdimension/dimension/object.h b/libdimension/dimension/object.h index 1e10c3f..efe2323 100644 --- a/libdimension/dimension/object.h +++ b/libdimension/dimension/object.h @@ -123,7 +123,7 @@ void dmnsn_initialize_object(dmnsn_object *object); DMNSN_INLINE dmnsn_vector dmnsn_transform_normal(dmnsn_matrix trans, dmnsn_vector normal) { - return dmnsn_vector_normalize( + return dmnsn_vector_normalized( dmnsn_vector_sub( dmnsn_transform_vector(trans, normal), /* Optimized form of dmnsn_transform_vector(trans, dmnsn_zero) */ |