public final class GreatCircles extends Object
GreatCircle
and GreatCircleSubset
instances.Modifier and Type | Method and Description |
---|---|
static GreatArc |
arcFromInterval(GreatCircle circle,
AngularInterval.Convex interval)
Construct an arc from a great circle and an angular interval.
|
static GreatArc |
arcFromPoints(Point2S start,
Point2S end,
Precision.DoubleEquivalence precision)
Construct an arc along the shortest path between the given points.
|
static GreatCircle |
fromPoints(Point2S a,
Point2S b,
Precision.DoubleEquivalence precision)
Create a great circle instance from two points on the circle.
|
static GreatCircle |
fromPole(Vector3D pole,
Precision.DoubleEquivalence precision)
Create a great circle instance from its pole vector.
|
static GreatCircle |
fromPoleAndU(Vector3D pole,
Vector3D u,
Precision.DoubleEquivalence precision)
Create a great circle instance from its pole vector and a vector representing the u-axis
in the equator plane.
|
public static GreatCircle fromPole(Vector3D pole, Precision.DoubleEquivalence precision)
pole
- pole vector for the great circleprecision
- precision context used to compare floating point valuespublic static GreatCircle fromPoleAndU(Vector3D pole, Vector3D u, Precision.DoubleEquivalence precision)
0pi
location for the embedded
subspace.pole
- pole vector for the great circleu
- u-axis direction for the equator planeprecision
- precision context used to compare floating point valuespublic static GreatCircle fromPoints(Point2S a, Point2S b, Precision.DoubleEquivalence precision)
a
- first point on the great circleb
- second point on the great circleprecision
- precision context used to compare floating point valuesIllegalArgumentException
- if either of the given points is NaN or infinite, or if the given points are
equal or antipodal as evaluated by the given precision contextpublic static GreatArc arcFromPoints(Point2S start, Point2S end, Precision.DoubleEquivalence precision)
start
to end
.start
- start point for the intervalend
- end point point for the intervalprecision
- precision context used to compare floating point numbersIllegalArgumentException
- if either of the given points is NaN or infinite, or if the given
points are equal or antipodal as evaluated by the given precision contextfromPoints(Point2S, Point2S, org.apache.commons.numbers.core.Precision.DoubleEquivalence)
public static GreatArc arcFromInterval(GreatCircle circle, AngularInterval.Convex interval)
circle
- circle defining the arcinterval
- interval representing the portion of the circle contained
in the arcCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.