ProGAL.geom3d
Class ApolloniusSolver
java.lang.Object
ProGAL.geom3d.ApolloniusSolver
public class ApolloniusSolver
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApolloniusSolver
public ApolloniusSolver()
main
public static void main(java.lang.String[] args)
solveApollonius
public static Sphere solveApollonius(Sphere c0,
Sphere c1,
Sphere c2,
Sphere c3,
int s0,
int s1,
int s2,
int s3)
- Solves the Apollonius problem of finding a circle tangent to three other circles in the plane.
- Parameters:
c0
- One of the spheres in the problemc1
- One of the spheres in the problemc2
- One of the spheres in the problemc3
- One of the spheres in the problems0
- An indication if the solution should be externally or internally tangent (-1/+1) to c0s1
- An indication if the solution should be externally or internally tangent (-1/+1) to c1s2
- An indication if the solution should be externally or internally tangent (-1/+1) to c2s3
- An indication if the solution should be externally or internally tangent (-1/+1) to c3
- Returns:
- The solution to the problem of Apollonius.
solveApollonius
public static Sphere solveApollonius(Point[] centers,
double[] radii,
int[] s)