Uses of Class
org.apache.commons.geometry.spherical.oned.Point1S
Packages that use Point1S
Package
Description
This package provides basic geometry components on the 1-sphere.
This package provides basic geometry components on the 2-sphere.
-
Uses of Point1S in org.apache.commons.geometry.spherical.oned
Fields in org.apache.commons.geometry.spherical.oned declared as Point1SModifier and TypeFieldDescriptionprivate final Point1S
AngularInterval.midpoint
Point halfway between the min and max boundaries.static final Point1S
Point1S.NaN
A point with all coordinates set to NaN.static final Point1S
Point1S.PI
A point with coordinates set topi
.private final Point1S
CutAngle.point
Hyperplane location as a point.static final Point1S
Point1S.ZERO
A point with coordinates set to0*pi
.Fields in org.apache.commons.geometry.spherical.oned with type parameters of type Point1SModifier and TypeFieldDescriptionstatic final Comparator
<Point1S> Comparator that sorts points by normalized azimuth in ascending order.Methods in org.apache.commons.geometry.spherical.oned that return Point1SModifier and TypeMethodDescriptionPoint1S.above
(double base) Return an equivalent point with an azimuth value at or above the given base value in radians.Return an equivalent point with an azimuth value at or above the given base.Point1S.antipodal()
Get the point exactly opposite this point on the circle,pi
distance away.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 Point1S
RegionBSPTree1S.BoundaryProjector1S.disambiguateClosestPoint
(Point1S target, Point1S a, Point1S b) Method used to determine which of pointsa
andb
should be considered as the "closest" point totarget
when the points are exactly equidistant.static Point1S
Point1S.from
(PolarCoordinates polar) Create a new point instance containing an azimuth value equal to that of the given set of polar coordinates.static Point1S
Create a new point instance from the given Euclidean 2D vector.AngularInterval.getCentroid()
Get the centroid, or geometric center, of the region or null if no centroid exists or one exists but is not unique.CutAngle.CutAngleConvexSubset.getCentroid()
Get the centroid, or geometric center, of the hyperplane subset or null if no centroid exists or one exists but is not unique.AngularInterval.getMidPoint()
Get the midpoint of the interval or null if the interval represents the full space.CutAngle.getPoint()
Get the location of the hyperplane as a point.static Point1S
Point1S.of
(double azimuth) Create a new point instance from the given azimuth angle.static Point1S
Point1S.of
(org.apache.commons.numbers.angle.Angle azimuth) Create a new point instance from the given azimuth angle.static Point1S
Parse the given string and returns a new point instance.Project a point onto the boundary of the region.Project a point onto this instance.Project a point onto the boundary of the region.Methods in org.apache.commons.geometry.spherical.oned that return types with arguments of type Point1SModifier and TypeMethodDescriptionRegionBSPTree1S.computeRegionSizeProperties()
Compute the size-related properties of the region.CutAngle.span()
Return aHyperplaneConvexSubset
spanning this entire hyperplane.Methods in org.apache.commons.geometry.spherical.oned with parameters of type Point1SModifier and TypeMethodDescriptionReturn an equivalent point with an azimuth value at or above the given base.Classify the given point with respect to the region.Classify a point with respect to this hyperplane.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.private static <T extends AngularInterval>
TAngularInterval.createInterval
(Point1S min, Point1S max, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision, BiFunction<? super CutAngle, ? super CutAngle, T> factory, T fullSpace) Internal method to create an interval between the given min and max points.static CutAngle
CutAngles.createNegativeFacing
(Point1S point, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance at the given point, oriented so that the plus side of the hyperplane points toward decreasing angular values.static CutAngle
CutAngles.createPositiveFacing
(Point1S point, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance at the given point, oriented so that the plus side of the hyperplane points toward increasing angular values.protected Point1S
RegionBSPTree1S.BoundaryProjector1S.disambiguateClosestPoint
(Point1S target, Point1S a, Point1S 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 shortest distance (angular separation) between two points.boolean
Return true if this instance is equivalent to the argument.static CutAngle
CutAngles.fromPointAndDirection
(Point1S point, boolean positiveFacing, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance from the given point and direction.protected boolean
RegionBSPTree1S.BoundaryProjector1S.isPossibleClosestCut
(HyperplaneSubset<Point1S> cut, Point1S target, double minDist) Return true if the given node cut is a possible candidate for containing the closest region boundary point to the target.static AngularInterval.Convex
AngularInterval.Convex.of
(Point1S min, Point1S max, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Return an instance representing the convex angular interval between the given min and max azimuth points.static AngularInterval
AngularInterval.of
(Point1S min, Point1S max, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Return an instance representing the angular interval between the given min and max azimuth points.double
Get the offset (oriented distance) of a point with respect to this instance.Project a point onto the boundary of the region.Project a point onto this instance.Project a point onto the boundary of the region.double
Point1S.signedDistance
(Point1S point) Return the signed distance (angular separation) between this instance and the given point in the range[-pi, pi)
.static double
Point1S.signedDistance
(Point1S p1, Point1S p2) Compute the signed shortest distance (angular separation) between two points.private static void
AngularInterval.validateIntervalValues
(Point1S a, Point1S b) Validate that the given points can be used to specify an angular interval.Method parameters in org.apache.commons.geometry.spherical.oned with type arguments of type Point1SModifier and TypeMethodDescriptionprotected boolean
RegionBSPTree1S.BoundaryProjector1S.isPossibleClosestCut
(HyperplaneSubset<Point1S> cut, Point1S target, double minDist) Return true if the given node cut is a possible candidate for containing the closest region boundary point to the target.boolean
CutAngle.similarOrientation
(Hyperplane<Point1S> other) Return true if this instance has a similar orientation to the given hyperplane, meaning that they point in generally the same direction.AngularInterval.split
(Hyperplane<Point1S> splitter) Split this instance with the given hyperplane.CutAngle.CutAngleConvexSubset.split
(Hyperplane<Point1S> splitter) Split this instance with the given hyperplane.RegionBSPTree1S.split
(Hyperplane<Point1S> splitter) Split this instance with the given hyperplane.Return a new instance transformed by the argument.Return a new instance transformed by the argument.private static <T extends AngularInterval>
TAngularInterval.transform
(T interval, Transform<Point1S> transform, BiFunction<? super CutAngle, ? super CutAngle, T> factory) Internal transform method that transforms the given instance, using the factory method to create a new instance if needed.Return a new hyperplane subset resulting from the application of the given transform.Transform this instance using the givenTransform
.void
Transform this tree.Constructors in org.apache.commons.geometry.spherical.oned with parameters of type Point1SModifierConstructorDescription(package private)
BoundaryProjector1S
(Point1S point) Simple constructor.(package private)
CutAngle
(Point1S point, boolean positiveFacing, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Simple constructor.Constructor parameters in org.apache.commons.geometry.spherical.oned with type arguments of type Point1SModifierConstructorDescriptionprivate
Simple constructor. -
Uses of Point1S in org.apache.commons.geometry.spherical.twod
Methods in org.apache.commons.geometry.spherical.twod that return Point1SModifier and TypeMethodDescriptionGreatCircle.toSubspace
(Point2S point) Transform a space point into a subspace point.GreatCircleSubset.toSubspace
(Point2S pt) Transform a space point into a subspace point.Methods in org.apache.commons.geometry.spherical.twod that return types with arguments of type Point1SModifier and TypeMethodDescriptionabstract HyperplaneBoundedRegion
<Point1S> GreatCircleSubset.getSubspaceRegion()
Get the embedded subspace region.Methods in org.apache.commons.geometry.spherical.twod with parameters of type Point1SModifier and TypeMethodDescriptionCreate an arc on this circle between the given subspace points.Transform a subspace point into a space point.Transform a subspace point into a space point.