Class InteriorAngleGreatArcConnector.Maximize
java.lang.Object
org.apache.commons.geometry.euclidean.internal.AbstractPathConnector<AbstractGreatArcConnector.ConnectableGreatArc>
org.apache.commons.geometry.spherical.twod.AbstractGreatArcConnector
org.apache.commons.geometry.spherical.twod.InteriorAngleGreatArcConnector
org.apache.commons.geometry.spherical.twod.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.-
Nested Class Summary
Nested classes/interfaces inherited from class InteriorAngleGreatArcConnector
InteriorAngleGreatArcConnector.Maximize, InteriorAngleGreatArcConnector.MinimizeNested classes/interfaces inherited from class AbstractGreatArcConnector
AbstractGreatArcConnector.ConnectableGreatArcNested classes/interfaces inherited from class AbstractPathConnector
AbstractPathConnector.ConnectableElement<E> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisBetterAngle(double newAngle, double previousAngle) Return true ifnewAnglerepresents a better interior angle thanpreviousAngle.Methods inherited from class InteriorAngleGreatArcConnector
connectMaximized, connectMinimized, selectConnectionMethods inherited from class AbstractGreatArcConnector
add, add, connect, connectAll, connectAllMethods inherited from class AbstractPathConnector
addPathElement, computePathRoots, connectPathElements, selectPointConnection
-
Constructor Details
-
Maximize
public Maximize()
-
-
Method Details
-
isBetterAngle
protected boolean isBetterAngle(double newAngle, double previousAngle) Return true ifnewAnglerepresents a better interior angle thanpreviousAngle.- Specified by:
isBetterAnglein classInteriorAngleGreatArcConnector- Parameters:
newAngle- the new angle under considerationpreviousAngle- the previous best angle- Returns:
- true if
newAnglerepresents a better interior angle thanpreviousAngle
-