ProGAL.geomNd
Class ApolloniusSolver

java.lang.Object
  extended by ProGAL.geomNd.ApolloniusSolver

public class ApolloniusSolver
extends java.lang.Object


Constructor Summary
ApolloniusSolver()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static HyperSphere solveApollonius(HyperSphere[] spheres, int[] s)
          Solves the Apollonius problem of finding a circle tangent to three other circles in the plane.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApolloniusSolver

public ApolloniusSolver()
Method Detail

main

public static void main(java.lang.String[] args)

solveApollonius

public static HyperSphere solveApollonius(HyperSphere[] spheres,
                                          int[] s)
Solves the Apollonius problem of finding a circle tangent to three other circles in the plane.

Parameters:
c0 - One of the spheres in the problem
c1 - One of the spheres in the problem
c2 - One of the spheres in the problem
c3 - One of the spheres in the problem
s0 - An indication if the solution should be externally or internally tangent (-1/+1) to c0
s1 - An indication if the solution should be externally or internally tangent (-1/+1) to c1
s2 - An indication if the solution should be externally or internally tangent (-1/+1) to c2
s3 - An indication if the solution should be externally or internally tangent (-1/+1) to c3
Returns:
The solution to the problem of Apollonius.