POV-Ray : Newsgroups : povray.general : Closest points on two circles : Re: Closest points on two circles Server Time
5 Nov 2024 13:22:34 EST (-0500)
  Re: Closest points on two circles  
From: Greg M  Johnson
Date: 25 Mar 2003 08:47:40
Message: <3e805dfc$1@news.povray.org>
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.


Post a reply to this message

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