POV-Ray : Newsgroups : povray.general : math ? : Re: math ? Server Time
7 Aug 2024 23:23:25 EDT (-0400)
  Re: math ?  
From: Ron Parker
Date: 18 Apr 2001 22:14:33
Message: <slrn9dsigc.dik.ron.parker@fwi.com>
On Wed, 18 Apr 2001 19:50:32 -0500, Shay and/or Carrie Ann wrote:
>nothing more complex than that. I do know the location of the point and of
>the center. This is an easy question with an easy answer, just one with
>which I am not familiar. What I have in mind is an arrangement of objects
>beneath a dome, but not touching it. I am going to test out Margus Ramst's
>formula. I'm sure he got it right. Thank you.

If you know the location of the point and the location of the center, the 
height is just Point.y-Center.y for a circle.  For a dome, you can use
sqrt( Radius^2 - vlength(<Point.x,Point.y,0>-<Center.x,Center.y,0>)^2 ) 

-- 
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.