Class InteriorAngleGreatArcConnector.Minimize

  • Enclosing class:
    InteriorAngleGreatArcConnector

    public static class InteriorAngleGreatArcConnector.Minimize
    extends InteriorAngleGreatArcConnector
    Implementation of InteriorAngleGreatArcConnector that chooses arc connections that produce the smallest interior angles. Another way to visualize this is that when presented multiple connection options for a given arc, this class will choose the option that points most to the left when viewed in the direction of the incoming arc.
    • Constructor Detail

      • Minimize

        public Minimize()
    • Method Detail

      • isBetterAngle

        protected boolean isBetterAngle​(double newAngle,
                                        double previousAngle)
        Return true if newAngle represents a better interior angle than previousAngle.
        Specified by:
        isBetterAngle in class InteriorAngleGreatArcConnector
        Parameters:
        newAngle - the new angle under consideration
        previousAngle - the previous best angle
        Returns:
        true if newAngle represents a better interior angle than previousAngle