POV-Ray : Newsgroups : povray.programming : No Inverse trig functions? : Re: No Inverse trig functions? Server Time
28 Jul 2024 12:31:32 EDT (-0400)
  Re: No Inverse trig functions?  
From: Ron Parker
Date: 23 Jan 2001 11:47:44
Message: <slrn96rddi.23v.ron.parker@fwi.com>
On Tue, 23 Jan 2001 11:36:36 -0500, Thomas Charron wrote:
>    I never noticed untill I needed them.  Povray doesn't implement any of
>the inverse trig functions?  Please oh PLEASE tell me I'm wrong.  I need
>them to calculate some angles required for an object rotation.  Blech.
>Maybe I'll just patch the darned thing into MegaPOV..  :-(

This doesn't really belong here, since it's a question about the scene
language and not about the source code to POV, but you might want to
reread the part of the documentation that says

acos(A) Arc-cosine of A. Returns the angle, measured in radians, whose 
        cosine is A. 

[...]

asin(A) Arc-sine of A. Returns the angle, measured in radians, whose 
        sine is A. 

atan2(A,B) Arc-tangent of (A/B). Returns the angle, measured in radians, 
        whose tangent is (A/B). Returns appropriate value even if B is 
        zero. Use atan2(A,1) to compute usual atan(A) function. 

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

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