Package | Description |
---|---|
org.apache.commons.geometry.spherical.twod |
This package provides basic geometry components on the 2-sphere.
|
Modifier and Type | Field and Description |
---|---|
static Point2S |
Point2S.MINUS_I
-I (coordinates: ( azimuth = pi, polar = pi/2 )).
|
static Point2S |
Point2S.MINUS_J
-J (coordinates: ( azimuth = 3pi/2, polar = pi/2 )).
|
static Point2S |
Point2S.MINUS_K
-K (coordinates: ( azimuth = any angle, polar = pi )).
|
static Point2S |
Point2S.NaN
A point with all coordinates set to NaN.
|
static Point2S |
Point2S.PLUS_I
+I (coordinates: ( azimuth = 0, polar = pi/2 )).
|
static Point2S |
Point2S.PLUS_J
+J (coordinates: ( azimuth = pi/2, polar = pi/2 ))).
|
static Point2S |
Point2S.PLUS_K
+K (coordinates: ( azimuth = any angle, polar = 0 )).
|
Modifier and Type | Field and Description |
---|---|
static Comparator<Point2S> |
Point2S.POLAR_AZIMUTH_ASCENDING_ORDER
Comparator that sorts points in component-wise ascending order, first sorting
by polar value and then by azimuth value.
|
Modifier and Type | Method and Description |
---|---|
Point2S |
Point2S.antipodal()
Get the point exactly opposite this point on the sphere.
|
Point2S |
Transform2S.apply(Point2S pt) |
Point2S |
GreatCircleSubset.closest(Point2S pt) |
static Point2S |
Point2S.from(Vector3D vector)
Build a point from its underlying 3D vector.
|
Point2S |
ConvexArea2S.getCentroid() |
Point2S |
GreatCircleSubset.getCentroid() |
Point2S |
GreatArc.getEndPoint()
Return the end point of the arc, or null if the arc represents the full space.
|
Point2S |
GreatArcPath.getEndVertex()
Get the end vertex for the path or null if the path is empty
or consists of a single, full arc.
|
Point2S |
GreatArc.getMidPoint()
Return the midpoint of the arc, or null if the arc represents the full space.
|
Point2S |
GreatCircle.getPolePoint()
Get the spherical point located at the positive pole of the instance.
|
Point2S |
GreatArc.getStartPoint()
Return the start point of the arc, or null if the arc represents the full space.
|
Point2S |
GreatArcPath.getStartVertex()
Get the start vertex for the path or null if the path is empty
or consists of a single, full arc.
|
Point2S |
GreatCircle.intersection(GreatCircle other)
Return one of the two intersection points between this instance and the argument.
|
static Point2S |
Point2S.of(double azimuth,
double polar)
Build a vector from its spherical coordinates.
|
static Point2S |
Point2S.parse(String str)
Parses the given string and returns a new point instance.
|
Point2S |
RegionBSPTree2S.project(Point2S pt) |
Point2S |
GreatCircle.project(Point2S point) |
Point2S |
Point2S.slerp(Point2S other,
double t)
Spherically interpolate a point along the shortest arc between this point and
the given point.
|
Point2S |
GreatCircle.toSpace(Point1S point) |
Point2S |
GreatCircleSubset.toSpace(Point1S pt) |
Modifier and Type | Method and Description |
---|---|
protected AbstractRegionBSPTree.RegionSizeProperties<Point2S> |
RegionBSPTree2S.computeRegionSizeProperties() |
List<Point2S> |
GreatArcPath.getVertices()
Get the vertices contained in the path in the order they appear.
|
Modifier and Type | Method and Description |
---|---|
double |
GreatCircle.angle(GreatCircle other,
Point2S pt)
Compute the angle between this great circle and the argument, measured
at the intersection point closest to the given point.
|
GreatArcPath.Builder |
GreatArcPath.Builder.append(Point2S vertex)
Add a vertex to the end of this path.
|
GreatArcPath.Builder |
GreatArcPath.Builder.appendVertices(Point2S... vertices)
Convenience method for appending multiple vertices to the path at once.
|
Point2S |
Transform2S.apply(Point2S pt) |
GreatArc |
GreatCircle.arc(Point2S start,
Point2S end)
Create an arc on this circle between the given points.
|
static GreatArc |
GreatCircles.arcFromPoints(Point2S start,
Point2S end,
Precision.DoubleEquivalence precision)
Construct an arc along the shortest path between the given points.
|
double |
GreatCircle.azimuth(Point2S pt)
Get the azimuth angle of a point relative to this great circle instance,
in the range
[0, 2pi) . |
RegionLocation |
GreatCircleSubset.classify(Point2S pt) |
Point2S |
GreatCircleSubset.closest(Point2S pt) |
static Transform2S |
Transform2S.createReflection(Point2S pole)
Create a transform that performs a reflection across the equatorial plane
defined by the given pole point.
|
static Transform2S |
Transform2S.createRotation(Point2S pt,
double angle)
Create a transform that rotates the given angle around
pt . |
double |
Point2S.distance(Point2S point) |
static double |
Point2S.distance(Point2S p1,
Point2S p2)
Compute the distance (angular separation) between two points.
|
boolean |
Point2S.eq(Point2S point,
Precision.DoubleEquivalence precision)
Return true if this point should be considered equivalent to the argument using the
given precision context.
|
static GreatCircle |
GreatCircles.fromPoints(Point2S a,
Point2S b,
Precision.DoubleEquivalence precision)
Create a great circle instance from two points on the circle.
|
double |
GreatCircle.offset(Point2S point) |
GreatArcPath.Builder |
GreatArcPath.Builder.prepend(Point2S vertex)
Add a vertex to the front of this path.
|
GreatArcPath.Builder |
GreatArcPath.Builder.prependPoints(Point2S... vertices)
Convenience method for prepending multiple vertices to the path in a single method call.
|
Point2S |
RegionBSPTree2S.project(Point2S pt) |
Point2S |
GreatCircle.project(Point2S point) |
Transform2S |
Transform2S.reflect(Point2S pole)
Apply a reflection across the equatorial plane defined by the given pole point
to this instance.
|
Transform2S |
Transform2S.rotate(Point2S pt,
double angle)
Apply a rotation of
angle radians around the given point to this instance. |
Point2S |
Point2S.slerp(Point2S other,
double t)
Spherically interpolate a point along the shortest arc between this point and
the given point.
|
Point1S |
GreatCircle.toSubspace(Point2S point) |
Point1S |
GreatCircleSubset.toSubspace(Point2S pt) |
Modifier and Type | Method and Description |
---|---|
GreatArcPath.Builder |
GreatArcPath.Builder.appendVertices(Collection<Point2S> vertices)
Convenience method for appending a collection of vertices to the path in a single
method call.
|
static ConvexArea2S |
ConvexArea2S.fromVertexLoop(Collection<Point2S> vertices,
Precision.DoubleEquivalence precision)
Construct a convex area by creating great circles between adjacent vertices.
|
static GreatArcPath |
GreatArcPath.fromVertexLoop(Collection<Point2S> vertices,
Precision.DoubleEquivalence precision)
Return a new path formed by connecting the given vertices.
|
static ConvexArea2S |
ConvexArea2S.fromVertices(Collection<Point2S> vertices,
boolean close,
Precision.DoubleEquivalence precision)
Construct a convex area from great circles between adjacent vertices.
|
static GreatArcPath |
GreatArcPath.fromVertices(Collection<Point2S> vertices,
boolean close,
Precision.DoubleEquivalence precision)
Return a new path formed by connecting the given vertices.
|
static ConvexArea2S |
ConvexArea2S.fromVertices(Collection<Point2S> vertices,
Precision.DoubleEquivalence precision)
Construct a convex area by creating great circles between adjacent vertices.
|
static GreatArcPath |
GreatArcPath.fromVertices(Collection<Point2S> vertices,
Precision.DoubleEquivalence precision)
Return a new path formed by connecting the given vertices.
|
GreatArcPath.Builder |
GreatArcPath.Builder.prependPoints(Collection<Point2S> vertices)
Convenience method for prepending a collection of vertices to the path in a single method call.
|
boolean |
GreatCircle.similarOrientation(Hyperplane<Point2S> other) |
Split<RegionBSPTree2S> |
RegionBSPTree2S.split(Hyperplane<Point2S> splitter) |
Split<ConvexArea2S> |
ConvexArea2S.split(Hyperplane<Point2S> splitter) |
Split<GreatArc> |
GreatArc.split(Hyperplane<Point2S> splitter) |
Split<EmbeddedTreeGreatCircleSubset> |
EmbeddedTreeGreatCircleSubset.split(Hyperplane<Point2S> splitter) |
ConvexArea2S |
ConvexArea2S.transform(Transform<Point2S> transform)
Return a new instance transformed by the argument.
|
GreatArc |
GreatArc.transform(Transform<Point2S> transform) |
GreatCircle |
GreatCircle.transform(Transform<Point2S> transform) |
EmbeddedTreeGreatCircleSubset |
EmbeddedTreeGreatCircleSubset.transform(Transform<Point2S> transform) |
GreatArc |
ConvexArea2S.trim(HyperplaneConvexSubset<Point2S> sub) |
Constructor and Description |
---|
ConnectableGreatArc(Point2S start)
Create a new instance with the given start point.
|
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.