Class InteriorAngleGreatArcConnector.Maximize

Enclosing class:
InteriorAngleGreatArcConnector

Implementation of InteriorAngleGreatArcConnector that chooses arc connections that produce the largest 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 right when viewed in the direction of the incoming arc.
  • Constructor Details

  • Method Details

    • 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