POV-Ray : Newsgroups : povray.general : Closest points on two circles : Re: Closest points on two circles Server Time
5 Nov 2024 13:23:29 EST (-0500)
  Re: Closest points on two circles  
From: ABX
Date: 25 Mar 2003 08:57:59
Message: <fqn08vov70hujm7t7ihaepp17kaerr6kpl@4ax.com>
On Tue, 25 Mar 2003 08:47:08 -0500, "Greg M. Johnson" <gregj:-)565### [at] aolcom>
wrote:
> To get the vector for spheres:
>
> #declare centerA=<10,5.0,-5.50>;
> #declare radiusA=3.1415;
> #declare centerB=<1.0,-45.0,15.50>;
> #declare radiusB=0.1415;
>
> #declare 1stpoint=  centerA+ radiusA*vnormalize(centerB-centerA);
> #declare 2ndpoint=  centerB+ radiusB*vnormalize(centerA-centerB);
>
> Then the vector in question is between 1stpoint and 2ndpoint.

No. Being in 2D consider circle located at <0,0> with radius 2 and circle
located at <3,0> with the same radius 2. Closest points between circles are
located in intersections which are not between centers.

ABX


Post a reply to this message

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