Uses of Class
org.apache.commons.geometry.spherical.twod.Point2S
Packages that use Point2S
Package
Description
This package provides basic geometry components on the 2-sphere.
-
Uses of Point2S in org.apache.commons.geometry.spherical.twod
Fields in org.apache.commons.geometry.spherical.twod declared as Point2SModifier and TypeFieldDescriptionprivate Point2S
GreatArcPath.Builder.endVertex
The current point at the end of the path.static final Point2S
Point2S.MINUS_I
-I (coordinates: ( azimuth = pi, polar = pi/2 )).static final Point2S
Point2S.MINUS_J
-J (coordinates: ( azimuth = 3pi/2, polar = pi/2 )).static final Point2S
Point2S.MINUS_K
-K (coordinates: ( azimuth = any angle, polar = pi )).static final Point2S
Point2S.NaN
A point with all coordinates set to NaN.static final Point2S
Point2S.PLUS_I
+I (coordinates: ( azimuth = 0, polar = pi/2 )).static final Point2S
Point2S.PLUS_J
+J (coordinates: ( azimuth = pi/2, polar = pi/2 ))).static final Point2S
Point2S.PLUS_K
+K (coordinates: ( azimuth = any angle, polar = 0 )).private final Point2S
AbstractGreatArcConnector.ConnectableGreatArc.start
Segment start point.private Point2S
GreatArcPath.Builder.startVertex
The current point at the start of the path.Fields in org.apache.commons.geometry.spherical.twod with type parameters of type Point2SModifier and TypeFieldDescriptionstatic final 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.Methods in org.apache.commons.geometry.spherical.twod that return Point2SModifier and TypeMethodDescriptionPoint2S.antipodal()
Get the point exactly opposite this point on the sphere.Return the closest point to the argument that is contained in the subset (ie, not classified asoutside
), or null if no such point exists.protected Point2S
RegionBSPTree2S.BoundaryProjector2S.disambiguateClosestPoint
(Point2S target, Point2S a, Point2S b) Method used to determine which of pointsa
andb
should be considered as the "closest" point totarget
when the points are exactly equidistant.static Point2S
Build a point from its underlying 3D vector.ConvexArea2S.getCentroid()
Get the centroid, or geometric center, of the region or null if no centroid exists or one exists but is not unique.GreatCircleSubset.getCentroid()
Get the centroid, or geometric center, of the hyperplane subset or null if no centroid exists or one exists but is not unique.GreatArc.getEndPoint()
Return the end point of the arc, or null if the arc represents the full space.GreatArcPath.getEndVertex()
Get the end vertex for the path or null if the path is empty or consists of a single, full arc.GreatArc.getMidPoint()
Return the midpoint of the arc, or null if the arc represents the full space.GreatCircle.getPolePoint()
Get the spherical point located at the positive pole of the instance.GreatArc.getStartPoint()
Return the start point of the arc, or null if the arc represents the full space.GreatArcPath.getStartVertex()
Get the start vertex for the path or null if the path is empty or consists of a single, full arc.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
Parses the given string and returns a new point instance.Project a point onto this instance.Project a point onto the boundary of the region.Spherically interpolate a point along the shortest arc between this point and the given point.Transform a subspace point into a space point.Transform a subspace point into a space point.Methods in org.apache.commons.geometry.spherical.twod that return types with arguments of type Point2SModifier and TypeMethodDescriptionRegionBSPTree2S.computeRegionSizeProperties()
Compute the size-related properties of the region.GreatArcPath.getVertices()
Get the vertices contained in the path in the order they appear.Methods in org.apache.commons.geometry.spherical.twod with parameters of type Point2SModifier and TypeMethodDescriptiondouble
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.Add a vertex to the end of this path.GreatArcPath.Builder.appendVertices
(Point2S... vertices) Convenience method for appending multiple vertices to the path at once.Create an arc on this circle between the given points.static GreatArc
GreatCircles.arcFromPoints
(Point2S start, Point2S end, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct an arc along the shortest path between the given points.double
Get the azimuth angle of a point relative to this great circle instance, in the range[0, 2pi)
.Classify a point with respect to the subset region.Return the closest point to the argument that is contained in the subset (ie, not classified asoutside
), or null if no such point exists.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 aroundpt
.protected Point2S
RegionBSPTree2S.BoundaryProjector2S.disambiguateClosestPoint
(Point2S target, Point2S a, Point2S b) Method used to determine which of pointsa
andb
should be considered as the "closest" point totarget
when the points are exactly equidistant.double
Compute the distance between this point and another point.static double
Compute the distance (angular separation) between two points.boolean
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, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a great circle instance from two points on the circle.double
Get the offset (oriented distance) of a point with respect to this instance.Add a vertex to the front of this path.GreatArcPath.Builder.prependPoints
(Point2S... vertices) Convenience method for prepending multiple vertices to the path in a single method call.Project a point onto this instance.Project a point onto the boundary of the region.Apply a reflection across the equatorial plane defined by the given pole point to this instance.Apply a rotation ofangle
radians around the given point to this instance.Spherically interpolate a point along the shortest arc between this point and the given point.GreatCircle.toSubspace
(Point2S point) Transform a space point into a subspace point.GreatCircleSubset.toSubspace
(Point2S pt) Transform a space point into a subspace point.Method parameters in org.apache.commons.geometry.spherical.twod with type arguments of type Point2SModifier and TypeMethodDescriptionGreatArcPath.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, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a convex area by creating great circles between adjacent vertices.static GreatArcPath
GreatArcPath.fromVertexLoop
(Collection<Point2S> vertices, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Return a new path formed by connecting the given vertices.static ConvexArea2S
ConvexArea2S.fromVertices
(Collection<Point2S> vertices, boolean close, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a convex area from great circles between adjacent vertices.static ConvexArea2S
ConvexArea2S.fromVertices
(Collection<Point2S> vertices, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a convex area by creating great circles between adjacent vertices.static GreatArcPath
GreatArcPath.fromVertices
(Collection<Point2S> vertices, boolean close, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Return a new path formed by connecting the given vertices.static GreatArcPath
GreatArcPath.fromVertices
(Collection<Point2S> vertices, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Return a new path formed by connecting the given vertices.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) Return true if this instance has a similar orientation to the given hyperplane, meaning that they point in generally the same direction.ConvexArea2S.split
(Hyperplane<Point2S> splitter) Split this instance with the given hyperplane.EmbeddedTreeGreatCircleSubset.split
(Hyperplane<Point2S> splitter) Split this instance with the given hyperplane.GreatArc.split
(Hyperplane<Point2S> splitter) Split this instance with the given hyperplane.RegionBSPTree2S.split
(Hyperplane<Point2S> splitter) Split this instance with the given hyperplane.Return a new instance transformed by the argument.Return a new hyperplane subset resulting from the application of the given transform.Return a new hyperplane subset resulting from the application of the given transform.Transform this instance using the givenTransform
.ConvexArea2S.trim
(HyperplaneConvexSubset<Point2S> sub) Trim the given hyperplane subset to the portion contained inside this instance.Constructors in org.apache.commons.geometry.spherical.twod with parameters of type Point2SModifierConstructorDescription(package private)
BoundaryProjector2S
(Point2S point) Simple constructor.ConnectableGreatArc
(Point2S start) Create a new instance with the given start point.private
ConnectableGreatArc
(Point2S start, GreatArc arc) Create a new instance with the given start point and arc.Constructor parameters in org.apache.commons.geometry.spherical.twod with type arguments of type Point2SModifierConstructorDescriptionprivate
Simple constructor.