Package net.sourceforge.plantuml.cute
Class ApolloniusSolver2
- java.lang.Object
-
- net.sourceforge.plantuml.cute.ApolloniusSolver2
-
public class ApolloniusSolver2 extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ApolloniusSolver2()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Balloon
solveApollonius(Balloon c1, Balloon c2, Balloon c3, int s1, int s2, int s3)
Solves the Problem of Apollonius (finding a circle tangent to three other circles in the plane).
-
-
-
Method Detail
-
solveApollonius
public static Balloon solveApollonius(Balloon c1, Balloon c2, Balloon c3, int s1, int s2, int s3)
Solves the Problem of Apollonius (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 circle that is tangent to c1, c2 and c3.
-
-