Class ApolloniusSolver


  • public class ApolloniusSolver
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      static net.sourceforge.plantuml.cute.ApolloniusSolver.Circle solveApollonius​(net.sourceforge.plantuml.cute.ApolloniusSolver.Circle c1, net.sourceforge.plantuml.cute.ApolloniusSolver.Circle c2, net.sourceforge.plantuml.cute.ApolloniusSolver.Circle c3, int s1, int s2, int s3)
      Solves the Problem of Apollonius (finding a circle tangent to three other circles in the plane).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApolloniusSolver

        public ApolloniusSolver()
    • Method Detail

      • solveApollonius

        public static net.sourceforge.plantuml.cute.ApolloniusSolver.Circle solveApollonius​(net.sourceforge.plantuml.cute.ApolloniusSolver.Circle c1,
                                                                                            net.sourceforge.plantuml.cute.ApolloniusSolver.Circle c2,
                                                                                            net.sourceforge.plantuml.cute.ApolloniusSolver.Circle 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 problem
        c2 - One of the circles in the problem
        c3 - One of the circles in the problem
        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 circle that is tangent to c1, c2 and c3.
      • main

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