POV-Ray : Newsgroups : povray.general : I have a.... : Re: I have a.... Server Time
18 Nov 2024 23:37:34 EST (-0500)
  Re: I have a....  
From: Slime
Date: 24 Jun 2002 17:55:04
Message: <3d179538@news.povray.org>
> if I remember right, tan()/sin() is cos()...

As others have pointed out, it's actually 1/cos(), or sec().
(sin()/cos())/sin() = sin()/(cos()*sin()) = 1/cos())

Now, even if you had correctly used sin()/tan(), you would have still had
problems at the points where tan() is zero (since division by zero is
undefined) and where it's undefined (at pi/2 + n*pi). Every other point
would have turned out correct, but you probably would have had errors
nonetheless.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

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