POV-Ray : Newsgroups : povray.binaries.images : Quiz : Re: Quiz Server Time
2 Oct 2024 10:19:21 EDT (-0400)
  Re: Quiz  
From: Chris Huff
Date: 10 May 2000 16:35:49
Message: <chrishuff_99-7456EB.15391010052000@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.