|
|
In article <39196fa1@news.povray.org>, Warp <war### [at] tagpovrayorg>
wrote:
> Yes: Laziness.
>
> It was easier than calculating sqrt(.75^2+.5^2) = .9013878188 and
> putting that (inaccurate) result there.
I wouldn't call it laziness, I would say it is good style. It allows you
to easily change the code later for different parameters, and there
isn't any reason not to use an available function for it's intended
purpose.
Oh, and in MegaPOV, "sqrt(0.75^2 + 0.5^2)" would work just fine(the ^
operator has been added), and you could use "sqrt(pow(0.75, 2) +
pow(0.5, 2))" in official POV.
--
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
|