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/cone.c | |
parent | 8a0acb317cf4870b3893849e6565833c611095bd (diff) | |
download | dimension-fe3bd7a078ac758792da7338d480b274e6aa4895.tar.xz |
Rename to dmnsn_vector_normalized().
Diffstat (limited to 'libdimension/cone.c')
-rw-r--r-- | libdimension/cone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/cone.c b/libdimension/cone.c index 40e8f12..87f1fde 100644 --- a/libdimension/cone.c +++ b/libdimension/cone.c @@ -111,7 +111,7 @@ dmnsn_cone_intersection_fn(const dmnsn_object *cone, dmnsn_line l, } if (t >= 0.0 && p.y > -1.0 && p.y < 1.0) { - dmnsn_vector norm = dmnsn_vector_normalize( + dmnsn_vector norm = dmnsn_vector_normalized( dmnsn_new_vector(p.x, -(r2 - r1)*sqrt(p.x*p.x + p.z*p.z)/2.0, p.z) ); intersection->ray = l; |