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 S1ChordAngleS2Predicates.DEG_45A predefined S1ChordAngle representing (approximately) 45 degrees.protected final S1ChordAngleS2ClosestPointQuery.ChordComparable.distancestatic final S1ChordAngleS1ChordAngle.INFINITYA chord angle larger than any finite chord angle.private S1ChordAngleS2ClosestPointQuery.maxDistanceLimitTemporary distance to continue searching during a query, generally the distance of the furthest point in the results found so far.static final S1ChordAngleS1ChordAngle.NEGATIVEA chord angle smaller thanZERO.private final S1ChordAngleS2Cap.radiusstatic final S1ChordAngleS1ChordAngle.RIGHTThe chord angle of 90 degrees (a "right angle").static final S1ChordAngleS1ChordAngle.STRAIGHTThe chord angle of 180 degrees (a "straight angle").static final S1ChordAngleS1ChordAngle.ZEROThe zero chord angle.Methods in com.google.common.geometry that return S1ChordAngleModifier and TypeMethodDescriptionstatic S1ChordAngleS1ChordAngle.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 S1ChordAngleS2ClosestPointQuery.ChordComparable.distance()static S1ChordAngleS1ChordAngle.fromLength2(double length2) Construct an S1ChordAngle from the squared chord length.static S1ChordAngleS1ChordAngle.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 S1ChordAngleS2EdgeUtil.getDistance(S2Point p, S2Edge e) Gets the distance fromptoe.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 S1ChordAngleS2EdgeUtil.getEdgePairDistance(S2Point a0, S2Point a1, S2Point b0, S2Point b1) Gets distance between edges with no minimum distance.static S1ChordAngleS2EdgeUtil.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 S1ChordAngleS2EdgeUtil.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 ofdistanceand a new distance from target topoint.static S1ChordAngleS1ChordAngle.max(S1ChordAngle a, S1ChordAngle b) Returns the larger of the given instances.static S1ChordAngleS1ChordAngle.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 S1ChordAngleS1ChordAngle.sub(S1ChordAngle a, S1ChordAngle b) Subtract one S1ChordAngle from another.S1ChordAngle.successor()Returns the smallest representable S1ChordAngle larger than this object.static S1ChordAngleS2EdgeUtil.updateMaxDistance(S2Point x, S2Point a, S2Point b, S1ChordAngle maxDistance) Returns the maximum of the distance fromxto any point on edge AB and the givenmaxDistance.static S1ChordAngleS2EdgeUtil.updateMinDistance(S2Point p, S2Edge e, S1ChordAngle minDistance) Gets the minimum of the distance fromatoeandminDistance.static S1ChordAngleS2EdgeUtil.updateMinDistance(S2Point x, S2Point a, S2Point b, S1ChordAngle minDistance) Return the minimum of the distance fromxto any point on edge ab and the givenminDistance.Methods in com.google.common.geometry with parameters of type S1ChordAngleModifier and TypeMethodDescriptionstatic S1ChordAngleS1ChordAngle.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.intS1ChordAngle.compareTo(S1ChordAngle that) static doubleS1ChordAngle.cos(S1ChordAngle a) Returns Math.cos(toAngle().radians()), but computed more efficiently.static S2CapS2Cap.fromAxisChord(S2Point center, S1ChordAngle radius) Creates a cap where the radius is expressed as an S1ChordAngle.static S1ChordAngleS2EdgeUtil.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 S1ChordAngleS2EdgeUtil.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 ofdistanceand a new distance from target topoint.(package private) static doubleS2EdgeUtil.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 doubleS2EdgeUtil.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 S1ChordAngleS1ChordAngle.max(S1ChordAngle a, S1ChordAngle b) Returns the larger of the given instances.static S1ChordAngleS1ChordAngle.min(S1ChordAngle a, S1ChordAngle b) Returns the smaller of the given instances.static doubleS1ChordAngle.sin(S1ChordAngle a) Returns Math.sin(toAngle().radians()), but computed more efficiently.static doubleS1ChordAngle.sin2(S1ChordAngle a) Returns the square of Math.sin(toAngle().radians()), but computed more efficiently.static S1ChordAngleS1ChordAngle.sub(S1ChordAngle a, S1ChordAngle b) Subtract one S1ChordAngle from another.static doubleS1ChordAngle.tan(S1ChordAngle a) Returns Math.tan(toAngle().radians()), but computed more efficiently.static S1ChordAngleS2EdgeUtil.updateMaxDistance(S2Point x, S2Point a, S2Point b, S1ChordAngle maxDistance) Returns the maximum of the distance fromxto any point on edge AB and the givenmaxDistance.static S1ChordAngleS2EdgeUtil.updateMinDistance(S2Point p, S2Edge e, S1ChordAngle minDistance) Gets the minimum of the distance fromatoeandminDistance.static S1ChordAngleS2EdgeUtil.updateMinDistance(S2Point x, S2Point a, S2Point b, S1ChordAngle minDistance) Return the minimum of the distance fromxto 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) privateResult(S1ChordAngle distance, S2PointIndex.Entry<T> pointData) privateS2Cap(S2Point axis, S1ChordAngle radius)