POV-Ray : Newsgroups : povray.general : arc length? : Re: arc length? Server Time
5 May 2024 14:51:19 EDT (-0400)
  Re: arc length?  
From: Leroy
Date: 10 Dec 2019 15:40:03
Message: <web.5df0018cffbd966b6af142130@news.povray.org>
Alain Martel <kua### [at] videotronca> wrote:
> Le 2019-12-09 à 02:39, Thomas de Groot a écrit :
> > Given a circle with known radius, what is the length of the arc segment
> > formed between two radii with a known angle?
> >
> > if you understand what I mean; that description feels awkward... :-/
> >
>
> You only need to convert that angle into radiant, then multiply by the
> radius :
>
> Just use the builtin macro :
>
> #declare ArcLength = radians( AngleInDegree ) * Radius;

This is good to know!
I came across the other way on my own.
This way is shorter and less likely to have errors!


Post a reply to this message

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