public static class InteriorAngleGreatArcConnector.Minimize extends InteriorAngleGreatArcConnector
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.InteriorAngleGreatArcConnector.Maximize, InteriorAngleGreatArcConnector.MinimizeAbstractGreatArcConnector.ConnectableGreatArcAbstractPathConnector.ConnectableElement<E extends AbstractPathConnector.ConnectableElement<E>>| Constructor and Description |
|---|
Minimize() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isBetterAngle(double newAngle,
double previousAngle)
Return true if
newAngle represents a better interior angle than previousAngle. |
connectMaximized, connectMinimized, selectConnectionadd, add, connect, connectAll, connectAlladdPathElement, computePathRoots, connectPathElements, selectPointConnectionprotected boolean isBetterAngle(double newAngle,
double previousAngle)
newAngle represents a better interior angle than previousAngle.isBetterAngle in class InteriorAngleGreatArcConnectornewAngle - the new angle under considerationpreviousAngle - the previous best anglenewAngle represents a better interior angle than previousAngleCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.