ProGAL.geom2d
Class ApolloniusSolver
java.lang.Object
ProGAL.geom2d.ApolloniusSolver
public class ApolloniusSolver
- extends java.lang.Object
Method Summary |
static void |
main(java.lang.String[] args)
|
static Circle |
solveApollonius(Circle c1,
Circle c2,
Circle c3,
int s1,
int s2,
int s3)
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 |
ApolloniusSolver
public ApolloniusSolver()
solveApollonius
public static Circle solveApollonius(Circle c1,
Circle c2,
Circle c3,
int s1,
int s2,
int s3)
- Solves the Apollonius problem of finding a circle tangent to three other circles in the plane.
The method uses approximately 68 heavy operations (multiplication, division, square-roots).
- Parameters:
c1
- One of the circles in the problemc2
- One of the circles in the problemc3
- One of the circles in the problems1
- 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.
main
public static void main(java.lang.String[] args)