public final class GreatArc extends GreatCircleSubset implements HyperplaneConvexSubset<Point2S>
GreatCircle
. Convex
angular intervals are those where the shortest path between all pairs of points in the
interval are completely contained in the interval. In the case of paths that tie for the
shortest length, it is sufficient that one of the paths is completely contained in the
interval. In spherical 2D space, convex arcs either fill the entire great circle or have
an angular size of less than or equal to pi
radians.
Instances of this class are guaranteed to be immutable.
GreatCircles
Modifier and Type | Method and Description |
---|---|
Point2S |
getEndPoint()
Return the end point of the arc, or null if the arc represents the full space.
|
AngularInterval.Convex |
getInterval()
Get the angular interval for the arc.
|
Point2S |
getMidPoint()
Return the midpoint of the arc, or null if the arc represents the full space.
|
Point2S |
getStartPoint()
Return the start point of the arc, or null if the arc represents the full space.
|
AngularInterval.Convex |
getSubspaceRegion() |
GreatArc |
reverse() |
Split<GreatArc> |
split(Hyperplane<Point2S> splitter) |
List<GreatArc> |
toConvex() |
String |
toString()
Return a string representation of this great arc.
|
GreatArc |
transform(Transform<Point2S> transform) |
classify, closest, getCentroid, getCircle, getHyperplane, getPrecision, getSize, isEmpty, isFull, toSpace, toSubspace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
classify, closest, contains, getCentroid, getHyperplane, isEmpty, isFull
getSize, isFinite, isInfinite
toSpace, toSubspace
public Point2S getStartPoint()
public Point2S getEndPoint()
public Point2S getMidPoint()
public AngularInterval.Convex getInterval()
getSubspaceRegion()
public AngularInterval.Convex getSubspaceRegion()
getSubspaceRegion
in interface RegionEmbedding<Point2S,Point1S>
getSubspaceRegion
in class GreatCircleSubset
public List<GreatArc> toConvex()
toConvex
in interface HyperplaneSubset<Point2S>
toConvex
in class GreatCircleSubset
public Split<GreatArc> split(Hyperplane<Point2S> splitter)
split
in interface HyperplaneConvexSubset<Point2S>
split
in interface Splittable<Point2S,HyperplaneSubset<Point2S>>
public GreatArc transform(Transform<Point2S> transform)
transform
in interface HyperplaneConvexSubset<Point2S>
transform
in interface HyperplaneSubset<Point2S>
public GreatArc reverse()
reverse
in interface HyperplaneConvexSubset<Point2S>
public String toString()
In order to keep the string representation short but useful, the exact format of the return value depends on the properties of the arc. See below for examples.
GreatArc[full= true, circle= GreatCircle[pole= (0.0, 0.0, 1.0), x= (1.0, 0.0, 0.0), y= (0.0, 1.0, 0.0)]
GreatArc[start= (1.0, 1.5707963267948966), end= (2.0, 1.5707963267948966)
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.