If you want to go further for some reason, you could also eleminate
common subexpressions...
d = a*(2*pi)/360
e = b*(2*pi)/360
f = c*(2*pi)/360
sd = sin(d)
cd = cos(d)
se = sin(e)
ce = cos(e)
sf = sin(f)
cf = cos(f)
zy = cd * z + sd * y
yz = cd * y - sd * z
m = cf * (ce * x + se * zy) - sf * yz
n = cf * (yz + sf * (ce * x + se * zy))
o = ce * zy - se * x
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|