POV-Ray : Newsgroups : povray.general : math ? : Re: math ? Server Time
7 Aug 2024 23:21:42 EDT (-0400)
  Re: math ?  
From: Jean-Michel Grimaldi
Date: 19 Apr 2001 10:24:54
Message: <3ADEF4A7.E640ECA6@via.ecp.fr>
Margus Ramst wrote:
> 
> 2*sin(acos(Distance/Radius))*Radius

You're right.
Though when the sin is >0, sin(acos x) = sqrt(1-x^2).
So a prettier formula would be :
  2*sqrt(Radius^2-Distance^2)

-- 
JM


Post a reply to this message

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