POV-Ray : Newsgroups : povray.general : Closest points on two circles : Re: Closest points on two circles Server Time
4 Aug 2024 16:13:29 EDT (-0400)
  Re: Closest points on two circles  
From: Edward Coffey
Date: 25 Mar 2003 08:53:44
Message: <3E806296.6090201@alphalink.com.au>
Greg M. Johnson 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.
> A treatment for "circles"  is the same as that for spheres with coplanar
> centers.

Thanks, but my purpose requires a solution for pairs of circles with any 
orientation and position relative to one another, not just coplanar circles.


Post a reply to this message

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