POV-Ray : Newsgroups : povray.programming : No Inverse trig functions? Server Time
24 Dec 2024 11:23:08 EST (-0500)
  No Inverse trig functions? (Message 1 to 4 of 4)  
From: Thomas Charron
Subject: No Inverse trig functions?
Date: 23 Jan 2001 11:36:21
Message: <3a6db305$1@news.povray.org>
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..  :-(


Post a reply to this message

From: Ron Parker
Subject: Re: No Inverse trig functions?
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

From: Thomas Charron
Subject: Re: No Inverse trig functions?
Date: 23 Jan 2001 12:04:48
Message: <3a6db9b0$1@news.povray.org>
Sorry, misinterpetation of 'programming'..  :-P  My fault, blindly
posted..  For some reason, I didn;t see the darned arc routines in there..
(bonkbonkbonk)..  Rough day, my humble appologies..  Floggings may now
continue..

"Ron Parker" <ron### [at] povrayorg> wrote in message
news:slr### [at] fwicom...
> 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

From: Thomas Charron
Subject: Re: No Inverse trig functions?
Date: 23 Jan 2001 12:05:08
Message: <3a6db9c4$1@news.povray.org>
Sorry, misinterpetation of 'programming'..  :-P  My fault, blindly
posted..  For some reason, I didn;t see the darned arc routines in there..
(bonkbonkbonk)..  Rough day, my humble appologies..  Floggings may now
continue..

"Ron Parker" <ron### [at] povrayorg> wrote in message
news:slr### [at] fwicom...
> 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.