Uses of Class
com.google.common.geometry.S1ChordAngle
-
-
Uses of S1ChordAngle in com.google.common.geometry
Fields in com.google.common.geometry declared as S1ChordAngle Modifier and Type Field Description static S1ChordAngleS1ChordAngle. INFINITYA chord angle larger than any finite chord angle.static S1ChordAngleS1ChordAngle. NEGATIVEA chord angle smaller thanZERO.static S1ChordAngleS1ChordAngle. RIGHTThe chord angle of 90 degrees (a "right angle").static S1ChordAngleS1ChordAngle. STRAIGHTThe chord angle of 180 degrees (a "straight angle").static S1ChordAngleS1ChordAngle. ZEROThe zero chord angle.Methods in com.google.common.geometry that return S1ChordAngle Modifier and Type Method Description static 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.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).S1ChordAngleS2Cell. getBoundaryDistance(S2Point target)Returns the distance from the cell boundary to the given point.S1ChordAngleS2Cell. getDistance(S2Cell target)Returns the distance to the given cell.S1ChordAngleS2Cell. getDistance(S2Point targetXyz)Returns the distance from the given point to the cell.static S1ChordAngleS2EdgeUtil. getDistance(S2Point p, S2Edge e)Gets the distance fromptoe.S1ChordAngleS2Cell. 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.S1ChordAngleS2Cell. getMaxDistance(S2Cell target)Returns the maximum distance from the cell, including interior, to the given target cell.S1ChordAngleS2Cell. getMaxDistance(S2Point target)Returns the maximum distance from the cell (including its interior) to the given point.S1ChordAngleS2Cell. getMaxDistance(S2Point a, S2Point b)Returns the maximum distance from the cell (including its interior) to the given edge AB.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.S1ChordAngleS1ChordAngle. plusError(double error)Returns a new S1ChordAngle that has been adjusted by the given error bound (which can be positive or negative).S1ChordAngleS1ChordAngle. predecessor()Assuccessor(), but returns the largest representable S1ChordAngle less than this object.S1ChordAngleS2Cap. radius()static S1ChordAngleS1ChordAngle. sub(S1ChordAngle a, S1ChordAngle b)Subtract one S1ChordAngle from another.S1ChordAngleS1ChordAngle. 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 S1ChordAngle Modifier and Type Method Description static 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.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.
-