public static class InteriorAngleGreatArcConnector.Maximize extends InteriorAngleGreatArcConnector
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.InteriorAngleGreatArcConnector.Maximize, InteriorAngleGreatArcConnector.Minimize
AbstractGreatArcConnector.ConnectableGreatArc
AbstractPathConnector.ConnectableElement<E extends AbstractPathConnector.ConnectableElement<E>>
Constructor and Description |
---|
Maximize() |
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, selectConnection
add, add, connect, connectAll, connectAll
addPathElement, computePathRoots, connectPathElements, selectPointConnection
public Maximize()
protected boolean isBetterAngle(double newAngle, double previousAngle)
newAngle
represents a better interior angle than previousAngle
.isBetterAngle
in class InteriorAngleGreatArcConnector
newAngle
- the new angle under considerationpreviousAngle
- the previous best anglenewAngle
represents a better interior angle than previousAngle
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.