Mercurial > hg > octave-nkf
changeset 16754:022dba56de1e
eliminate unnecessary normalisation of view vector in surfl (bug #39241)
* surfl.m: Don't normalize view vector.
author | Andreas Weber <andy.weber.aw@googlemail.com> |
---|---|
date | Wed, 12 Jun 2013 10:03:50 -0400 |
parents | f8f35ddc49a2 |
children | 787168f5f858 |
files | scripts/plot/surfl.m |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/surfl.m +++ b/scripts/plot/surfl.m @@ -131,8 +131,7 @@ ## Get view vector (vv). a = axis; [az, el] = view; - [vv(1), vv(2), vv(3)] = sph2cart ((az - 90) * pi/180.0, el * pi/180.0, 1.0); - vv /= norm (vv); + vv = sph2cart ((az - 90) * pi/180.0, el * pi/180.0, 1.0); if (!have_lv) ## Calculate light vector (lv) from view vector.