diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-05-18 11:58:18 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-05-18 21:05:41 -0600 |
commit | fe3bd7a078ac758792da7338d480b274e6aa4895 (patch) | |
tree | 2757c92940b80f9519e70ffbb727b9d65c9bf27b /libdimension/dimension | |
parent | 8a0acb317cf4870b3893849e6565833c611095bd (diff) | |
download | dimension-fe3bd7a078ac758792da7338d480b274e6aa4895.tar.xz |
Rename to dmnsn_vector_normalized().
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) */ |