POV-Ray : Newsgroups : povray.animations : Trig for Lohmueller chain animation : Re: Trig for Lohmueller chain animation Server Time
27 Apr 2024 18:07:12 EDT (-0400)
  Re: Trig for Lohmueller chain animation  
From: Le Forgeron
Date: 16 Jul 2014 16:32:01
Message: <53c6e141$1@news.povray.org>
Le 16/07/2014 22:24, Le_Forgeron nous fit lire :

> My bad, it should have been :
> 
> 2*sqrt(P^2 - (r1-r2)^2)) +2*pi*r2 + (pi+2*asin((r1-r2)/P))*(abs(r1-r2))
> 

Bugged again.
It's simpler and better :

2*sqrt(P^2 - (r1-r2)^2)) +pi*r2 + pi*r1 +2*asin((r1-r2)/P)*(r1-r2)

no need for abs(), as the last product will always be positive.

-- 
IQ of crossposters with FU: 100 / (number of groups)
IQ of crossposters without FU: 100 / (1 + number of groups)
IQ of multiposters: 100 / ( (number of groups) * (number of groups))


Post a reply to this message

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