Uses of Class
com.google.common.geometry.S1ChordAngle
-
Uses of S1ChordAngle in com.google.common.geometry
Fields in com.google.common.geometry declared as S1ChordAngleModifier and TypeFieldDescriptionprivate static final S1ChordAngle
S2Predicates.DEG_45
A predefined S1ChordAngle representing (approximately) 45 degrees.protected final S1ChordAngle
S2ClosestPointQuery.ChordComparable.distance
static final S1ChordAngle
S1ChordAngle.INFINITY
A chord angle larger than any finite chord angle.private S1ChordAngle
S2ClosestPointQuery.maxDistanceLimit
Temporary distance to continue searching during a query, generally the distance of the furthest point in the results found so far.static final S1ChordAngle
S1ChordAngle.NEGATIVE
A chord angle smaller thanZERO
.private final S1ChordAngle
S2Cap.radius
static final S1ChordAngle
S1ChordAngle.RIGHT
The chord angle of 90 degrees (a "right angle").static final S1ChordAngle
S1ChordAngle.STRAIGHT
The chord angle of 180 degrees (a "straight angle").static final S1ChordAngle
S1ChordAngle.ZERO
The zero chord angle.Methods in com.google.common.geometry that return S1ChordAngleModifier and TypeMethodDescriptionstatic S1ChordAngle
S1ChordAngle.add
(S1ChordAngle a, S1ChordAngle b) Returns a new S1ChordAngle whose chord distance represents the sum of the angular distances represented by the 'a' and 'b' chord angles.final S1ChordAngle
S2ClosestPointQuery.ChordComparable.distance()
static S1ChordAngle
S1ChordAngle.fromLength2
(double length2) Construct an S1ChordAngle from the squared chord length.static S1ChordAngle
S1ChordAngle.fromS1Angle
(S1Angle angle) Returns a new chord angle approximated fromangle
(seegetS1AngleConstructorMaxError()
for the max magnitude of the error).S2Cell.getBoundaryDistance
(S2Point target) Returns the distance from the cell boundary to the given point.S2Cell.getDistance
(S2Cell target) Returns the distance to the given cell.S2Cell.getDistance
(S2Point targetXyz) Returns the distance from the given point to the cell.S2ClosestPointQuery.EdgeTarget.getDistance
(S2Cell cell) S2ClosestPointQuery.PointTarget.getDistance
(S2Cell cell) S2ClosestPointQuery.Target.getDistance
(S2Cell cell) Returns the distance between this target and the given cell.static S1ChordAngle
S2EdgeUtil.getDistance
(S2Point p, S2Edge e) Gets the distance fromp
toe
.S2Cell.getDistanceToEdge
(S2Point a, S2Point b) Returns the minimum distance from the cell to the given edge AB, or zero if the edge intersects the cell interior.static S1ChordAngle
S2EdgeUtil.getEdgePairDistance
(S2Point a0, S2Point a1, S2Point b0, S2Point b1) Gets distance between edges with no minimum distance.static S1ChordAngle
S2EdgeUtil.getEdgePairMaxDistance
(S2Point a0, S2Point a1, S2Point b0, S2Point b1, S1ChordAngle maxDist) LikeS2EdgeUtil.updateMaxDistance(com.google.common.geometry.S2Point, com.google.common.geometry.S2Point, com.google.common.geometry.S2Point, com.google.common.geometry.S1ChordAngle)
, but computes the maximum distance between the given pair of edges.static S1ChordAngle
S2EdgeUtil.getEdgePairMinDistance
(S2Point a0, S2Point a1, S2Point b0, S2Point b1, S1ChordAngle minDist) LikeS2EdgeUtil.updateMinDistance(com.google.common.geometry.S2Point, com.google.common.geometry.S2Edge, com.google.common.geometry.S1ChordAngle)
, but computes the minimum distance between the given pair of edges.S2Cell.getMaxDistance
(S2Cell target) Returns the maximum distance from the cell, including interior, to the given target cell.S2Cell.getMaxDistance
(S2Point target) Returns the maximum distance from the cell (including its interior) to the given point.S2Cell.getMaxDistance
(S2Point a, S2Point b) Returns the maximum distance from the cell (including its interior) to the given edge AB.S2ClosestPointQuery.EdgeTarget.getMinDistance
(S2Point x, S1ChordAngle minDist) S2ClosestPointQuery.PointTarget.getMinDistance
(S2Point x, S1ChordAngle minDist) S2ClosestPointQuery.Target.getMinDistance
(S2Point point, S1ChordAngle distance) Returns the smaller ofdistance
and a new distance from target topoint
.static S1ChordAngle
S1ChordAngle.max
(S1ChordAngle a, S1ChordAngle b) Returns the larger of the given instances.static S1ChordAngle
S1ChordAngle.min
(S1ChordAngle a, S1ChordAngle b) Returns the smaller of the given instances.S1ChordAngle.plusError
(double error) Returns a new S1ChordAngle that has been adjusted by the given error bound (which can be positive or negative).S1ChordAngle.predecessor()
Assuccessor()
, but returns the largest representable S1ChordAngle less than this object.S2Cap.radius()
static S1ChordAngle
S1ChordAngle.sub
(S1ChordAngle a, S1ChordAngle b) Subtract one S1ChordAngle from another.S1ChordAngle.successor()
Returns the smallest representable S1ChordAngle larger than this object.static S1ChordAngle
S2EdgeUtil.updateMaxDistance
(S2Point x, S2Point a, S2Point b, S1ChordAngle maxDistance) Returns the maximum of the distance fromx
to any point on edge AB and the givenmaxDistance
.static S1ChordAngle
S2EdgeUtil.updateMinDistance
(S2Point p, S2Edge e, S1ChordAngle minDistance) Gets the minimum of the distance froma
toe
andminDistance
.static S1ChordAngle
S2EdgeUtil.updateMinDistance
(S2Point x, S2Point a, S2Point b, S1ChordAngle minDistance) Return the minimum of the distance fromx
to any point on edge ab and the givenminDistance
.Methods in com.google.common.geometry with parameters of type S1ChordAngleModifier and TypeMethodDescriptionstatic S1ChordAngle
S1ChordAngle.add
(S1ChordAngle a, S1ChordAngle b) Returns a new S1ChordAngle whose chord distance represents the sum of the angular distances represented by the 'a' and 'b' chord angles.int
S1ChordAngle.compareTo
(S1ChordAngle that) static double
S1ChordAngle.cos
(S1ChordAngle a) Returns Math.cos(toAngle().radians()), but computed more efficiently.static S2Cap
S2Cap.fromAxisChord
(S2Point center, S1ChordAngle radius) Creates a cap where the radius is expressed as an S1ChordAngle.static S1ChordAngle
S2EdgeUtil.getEdgePairMaxDistance
(S2Point a0, S2Point a1, S2Point b0, S2Point b1, S1ChordAngle maxDist) LikeS2EdgeUtil.updateMaxDistance(com.google.common.geometry.S2Point, com.google.common.geometry.S2Point, com.google.common.geometry.S2Point, com.google.common.geometry.S1ChordAngle)
, but computes the maximum distance between the given pair of edges.static S1ChordAngle
S2EdgeUtil.getEdgePairMinDistance
(S2Point a0, S2Point a1, S2Point b0, S2Point b1, S1ChordAngle minDist) LikeS2EdgeUtil.updateMinDistance(com.google.common.geometry.S2Point, com.google.common.geometry.S2Edge, com.google.common.geometry.S1ChordAngle)
, but computes the minimum distance between the given pair of edges.S2ClosestPointQuery.EdgeTarget.getMinDistance
(S2Point x, S1ChordAngle minDist) S2ClosestPointQuery.PointTarget.getMinDistance
(S2Point x, S1ChordAngle minDist) S2ClosestPointQuery.Target.getMinDistance
(S2Point point, S1ChordAngle distance) Returns the smaller ofdistance
and a new distance from target topoint
.(package private) static double
S2EdgeUtil.getMinDistanceMaxError
(S1ChordAngle distance) Returns the maximum error in the result ofS2EdgeUtil.updateMinDistance(com.google.common.geometry.S2Point, com.google.common.geometry.S2Edge, com.google.common.geometry.S1ChordAngle)
(and associated functions), assuming that all input points are normalized to within the bounds guaranteed byS2Point.normalize()
.(package private) static double
S2EdgeUtil.getMinInteriorDistanceMaxError
(S1ChordAngle distance) Returns the maximum error in the result ofS2EdgeUtil.updateMinDistance(com.google.common.geometry.S2Point, com.google.common.geometry.S2Edge, com.google.common.geometry.S1ChordAngle)
, assuming that all input points are normalized to within the bounds guaranteed byS2Point.normalize()
.static S1ChordAngle
S1ChordAngle.max
(S1ChordAngle a, S1ChordAngle b) Returns the larger of the given instances.static S1ChordAngle
S1ChordAngle.min
(S1ChordAngle a, S1ChordAngle b) Returns the smaller of the given instances.static double
S1ChordAngle.sin
(S1ChordAngle a) Returns Math.sin(toAngle().radians()), but computed more efficiently.static double
S1ChordAngle.sin2
(S1ChordAngle a) Returns the square of Math.sin(toAngle().radians()), but computed more efficiently.static S1ChordAngle
S1ChordAngle.sub
(S1ChordAngle a, S1ChordAngle b) Subtract one S1ChordAngle from another.static double
S1ChordAngle.tan
(S1ChordAngle a) Returns Math.tan(toAngle().radians()), but computed more efficiently.static S1ChordAngle
S2EdgeUtil.updateMaxDistance
(S2Point x, S2Point a, S2Point b, S1ChordAngle maxDistance) Returns the maximum of the distance fromx
to any point on edge AB and the givenmaxDistance
.static S1ChordAngle
S2EdgeUtil.updateMinDistance
(S2Point p, S2Edge e, S1ChordAngle minDistance) Gets the minimum of the distance froma
toe
andminDistance
.static S1ChordAngle
S2EdgeUtil.updateMinDistance
(S2Point x, S2Point a, S2Point b, S1ChordAngle minDistance) Return the minimum of the distance fromx
to any point on edge ab and the givenminDistance
.Constructors in com.google.common.geometry with parameters of type S1ChordAngleModifierConstructorDescription(package private)
ChordComparable
(S1ChordAngle distance) (package private)
QueueEntry
(S1ChordAngle distance, S2CellId id) private
Result
(S1ChordAngle distance, S2PointIndex.Entry<T> pointData) private
S2Cap
(S2Point axis, S1ChordAngle radius)