Uses of Class
org.apache.commons.geometry.spherical.twod.Point2S
-
Packages that use Point2S Package Description org.apache.commons.geometry.spherical.twod 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 Point2S Modifier and Type Field Description private Point2S
GreatArcPath.Builder. endVertex
The current point at the end of the path.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 )).private 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 Point2S Modifier and Type Field Description static java.util.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 Point2S Modifier and Type Method Description Point2S
Point2S. antipodal()
Get the point exactly opposite this point on the sphere.Point2S
Transform2S. apply(Point2S pt)
Point2S
GreatCircleSubset. closest(Point2S pt)
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
Point2S. from(Vector3D vector)
Build a point from its underlying 3D vector.Point2S
ConvexArea2S. getCentroid()
Get the centroid, or geometric center, of the region or null if no centroid exists or one exists but is not unique.Point2S
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.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(java.lang.String str)
Parses the given string and returns a new point instance.Point2S
GreatCircle. project(Point2S point)
Project a point onto this instance.Point2S
RegionBSPTree2S. project(Point2S pt)
Project a point onto the boundary of the region.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)
Transform a subspace point into a space point.Point2S
GreatCircleSubset. toSpace(Point1S pt)
Transform a subspace point into a space point.Methods in org.apache.commons.geometry.spherical.twod that return types with arguments of type Point2S Modifier and Type Method Description protected AbstractRegionBSPTree.RegionSizeProperties<Point2S>
RegionBSPTree2S. computeRegionSizeProperties()
Compute the size-related properties of the region.java.util.List<Point2S>
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 Point2S Modifier and Type Method 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, org.apache.commons.numbers.core.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)
Classify a point with respect to the subset region.Point2S
GreatCircleSubset. closest(Point2S pt)
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
Point2S. distance(Point2S point)
Compute the distance between this point and another point.static double
Point2S. distance(Point2S p1, Point2S p2)
Compute the distance (angular separation) between two points.boolean
Point2S. eq(Point2S point, org.apache.commons.numbers.core.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, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision)
Create a great circle instance from two points on the circle.double
GreatCircle. offset(Point2S point)
Get the offset (oriented distance) of a point with respect to this instance.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
GreatCircle. project(Point2S point)
Project a point onto this instance.Point2S
RegionBSPTree2S. project(Point2S pt)
Project a point onto the boundary of the region.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 ofangle
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)
Transform a space point into a subspace point.Point1S
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 Point2S Modifier and Type Method Description GreatArcPath.Builder
GreatArcPath.Builder. appendVertices(java.util.Collection<Point2S> vertices)
Convenience method for appending a collection of vertices to the path in a single method call.static ConvexArea2S
ConvexArea2S. fromVertexLoop(java.util.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(java.util.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(java.util.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(java.util.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(java.util.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(java.util.Collection<Point2S> vertices, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision)
Return a new path formed by connecting the given vertices.GreatArcPath.Builder
GreatArcPath.Builder. prependPoints(java.util.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.Split<ConvexArea2S>
ConvexArea2S. split(Hyperplane<Point2S> splitter)
Split this instance with the given hyperplane.Split<EmbeddedTreeGreatCircleSubset>
EmbeddedTreeGreatCircleSubset. split(Hyperplane<Point2S> splitter)
Split this instance with the given hyperplane.Split<GreatArc>
GreatArc. split(Hyperplane<Point2S> splitter)
Split this instance with the given hyperplane.Split<RegionBSPTree2S>
RegionBSPTree2S. split(Hyperplane<Point2S> splitter)
Split this instance with the given hyperplane.ConvexArea2S
ConvexArea2S. transform(Transform<Point2S> transform)
Return a new instance transformed by the argument.EmbeddedTreeGreatCircleSubset
EmbeddedTreeGreatCircleSubset. transform(Transform<Point2S> transform)
Return a new hyperplane subset resulting from the application of the given transform.GreatArc
GreatArc. transform(Transform<Point2S> transform)
Return a new hyperplane subset resulting from the application of the given transform.GreatCircle
GreatCircle. transform(Transform<Point2S> transform)
Transform this instance using the givenTransform
.GreatArc
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 Point2S Constructor Description BoundaryProjector2S(Point2S point)
Simple constructor.ConnectableGreatArc(Point2S start)
Create a new instance with the given start point.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 Point2S Constructor Description RegionNode2S(AbstractBSPTree<Point2S,RegionBSPTree2S.RegionNode2S> tree)
Simple constructor.
-