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 Point2SGreatArcPath.Builder. endVertexThe current point at the end of the path.static Point2SPoint2S. MINUS_I-I (coordinates: ( azimuth = pi, polar = pi/2 )).static Point2SPoint2S. MINUS_J-J (coordinates: ( azimuth = 3pi/2, polar = pi/2 )).static Point2SPoint2S. MINUS_K-K (coordinates: ( azimuth = any angle, polar = pi )).static Point2SPoint2S. NaNA point with all coordinates set to NaN.static Point2SPoint2S. PLUS_I+I (coordinates: ( azimuth = 0, polar = pi/2 )).static Point2SPoint2S. PLUS_J+J (coordinates: ( azimuth = pi/2, polar = pi/2 ))).static Point2SPoint2S. PLUS_K+K (coordinates: ( azimuth = any angle, polar = 0 )).private Point2SAbstractGreatArcConnector.ConnectableGreatArc. startSegment start point.private Point2SGreatArcPath.Builder. startVertexThe 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_ORDERComparator 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 Point2SPoint2S. antipodal()Get the point exactly opposite this point on the sphere.Point2STransform2S. apply(Point2S pt)Point2SGreatCircleSubset. 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 Point2SRegionBSPTree2S.BoundaryProjector2S. disambiguateClosestPoint(Point2S target, Point2S a, Point2S b)Method used to determine which of pointsaandbshould be considered as the "closest" point totargetwhen the points are exactly equidistant.static Point2SPoint2S. from(Vector3D vector)Build a point from its underlying 3D vector.Point2SConvexArea2S. getCentroid()Get the centroid, or geometric center, of the region or null if no centroid exists or one exists but is not unique.Point2SGreatCircleSubset. getCentroid()Get the centroid, or geometric center, of the hyperplane subset or null if no centroid exists or one exists but is not unique.Point2SGreatArc. getEndPoint()Return the end point of the arc, or null if the arc represents the full space.Point2SGreatArcPath. getEndVertex()Get the end vertex for the path or null if the path is empty or consists of a single, full arc.Point2SGreatArc. getMidPoint()Return the midpoint of the arc, or null if the arc represents the full space.Point2SGreatCircle. getPolePoint()Get the spherical point located at the positive pole of the instance.Point2SGreatArc. getStartPoint()Return the start point of the arc, or null if the arc represents the full space.Point2SGreatArcPath. getStartVertex()Get the start vertex for the path or null if the path is empty or consists of a single, full arc.Point2SGreatCircle. intersection(GreatCircle other)Return one of the two intersection points between this instance and the argument.static Point2SPoint2S. of(double azimuth, double polar)Build a vector from its spherical coordinates.static Point2SPoint2S. parse(java.lang.String str)Parses the given string and returns a new point instance.Point2SGreatCircle. project(Point2S point)Project a point onto this instance.Point2SRegionBSPTree2S. project(Point2S pt)Project a point onto the boundary of the region.Point2SPoint2S. slerp(Point2S other, double t)Spherically interpolate a point along the shortest arc between this point and the given point.Point2SGreatCircle. toSpace(Point1S point)Transform a subspace point into a space point.Point2SGreatCircleSubset. 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 doubleGreatCircle. 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.BuilderGreatArcPath.Builder. append(Point2S vertex)Add a vertex to the end of this path.GreatArcPath.BuilderGreatArcPath.Builder. appendVertices(Point2S... vertices)Convenience method for appending multiple vertices to the path at once.Point2STransform2S. apply(Point2S pt)GreatArcGreatCircle. arc(Point2S start, Point2S end)Create an arc on this circle between the given points.static GreatArcGreatCircles. arcFromPoints(Point2S start, Point2S end, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision)Construct an arc along the shortest path between the given points.doubleGreatCircle. azimuth(Point2S pt)Get the azimuth angle of a point relative to this great circle instance, in the range[0, 2pi).RegionLocationGreatCircleSubset. classify(Point2S pt)Classify a point with respect to the subset region.Point2SGreatCircleSubset. 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 Transform2STransform2S. createReflection(Point2S pole)Create a transform that performs a reflection across the equatorial plane defined by the given pole point.static Transform2STransform2S. createRotation(Point2S pt, double angle)Create a transform that rotates the given angle aroundpt.protected Point2SRegionBSPTree2S.BoundaryProjector2S. disambiguateClosestPoint(Point2S target, Point2S a, Point2S b)Method used to determine which of pointsaandbshould be considered as the "closest" point totargetwhen the points are exactly equidistant.doublePoint2S. distance(Point2S point)Compute the distance between this point and another point.static doublePoint2S. distance(Point2S p1, Point2S p2)Compute the distance (angular separation) between two points.booleanPoint2S. 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 GreatCircleGreatCircles. fromPoints(Point2S a, Point2S b, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision)Create a great circle instance from two points on the circle.doubleGreatCircle. offset(Point2S point)Get the offset (oriented distance) of a point with respect to this instance.GreatArcPath.BuilderGreatArcPath.Builder. prepend(Point2S vertex)Add a vertex to the front of this path.GreatArcPath.BuilderGreatArcPath.Builder. prependPoints(Point2S... vertices)Convenience method for prepending multiple vertices to the path in a single method call.Point2SGreatCircle. project(Point2S point)Project a point onto this instance.Point2SRegionBSPTree2S. project(Point2S pt)Project a point onto the boundary of the region.Transform2STransform2S. reflect(Point2S pole)Apply a reflection across the equatorial plane defined by the given pole point to this instance.Transform2STransform2S. rotate(Point2S pt, double angle)Apply a rotation ofangleradians around the given point to this instance.Point2SPoint2S. slerp(Point2S other, double t)Spherically interpolate a point along the shortest arc between this point and the given point.Point1SGreatCircle. toSubspace(Point2S point)Transform a space point into a subspace point.Point1SGreatCircleSubset. 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.BuilderGreatArcPath.Builder. appendVertices(java.util.Collection<Point2S> vertices)Convenience method for appending a collection of vertices to the path in a single method call.static ConvexArea2SConvexArea2S. 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 GreatArcPathGreatArcPath. 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 ConvexArea2SConvexArea2S. 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 ConvexArea2SConvexArea2S. 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 GreatArcPathGreatArcPath. 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 GreatArcPathGreatArcPath. 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.BuilderGreatArcPath.Builder. prependPoints(java.util.Collection<Point2S> vertices)Convenience method for prepending a collection of vertices to the path in a single method call.booleanGreatCircle. 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.ConvexArea2SConvexArea2S. transform(Transform<Point2S> transform)Return a new instance transformed by the argument.EmbeddedTreeGreatCircleSubsetEmbeddedTreeGreatCircleSubset. transform(Transform<Point2S> transform)Return a new hyperplane subset resulting from the application of the given transform.GreatArcGreatArc. transform(Transform<Point2S> transform)Return a new hyperplane subset resulting from the application of the given transform.GreatCircleGreatCircle. transform(Transform<Point2S> transform)Transform this instance using the givenTransform.GreatArcConvexArea2S. 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.
-