Functions
Computes the center of a rectangle.
Computes the height of a rectangle in radians.
Computes the width of a rectangle in radians.
Returns true if the cartographic is on or inside the rectangle, false otherwise.
Compares the provided Rectangles componentwise and returns true
if they pass an absolute or relative tolerance test, false
otherwise.
Create a rectangle from a bounding sphere, ignoring height.
Creates the smallest possible Rectangle that encloses all positions in the provided array.
Creates the smallest possible Rectangle that encloses all positions in the provided array.
Computes the intersection of two rectangles. This function assumes that the rectangle's coordinates are latitude and longitude in radians and produces a correct intersection, taking into account the fact that the same angle can be represented with multiple values as well as the wrapping of longitude at the anti-meridian. For a simple intersection that ignores these factors and can be used with projected coordinates, see Rectangle.simpleIntersection.
Computes the northeast corner of a rectangle.
Computes the northwest corner of a rectangle.
Stores the provided instance into the provided array.
Computes a simple intersection of two rectangles. Unlike Rectangle.intersection, this function does not attempt to put the angular coordinates into a consistent range or to account for crossing the anti-meridian. As such, it can be used for rectangles where the coordinates are not simply latitude and longitude (i.e. projected coordinates).
Computes the southeast corner of a rectangle.
Computes the southwest corner of a rectangle.
Samples a rectangle so that it includes a list of Cartesian points suitable for passing to BoundingSphere.fromPoints. Sampling is necessary to account for rectangles that cover the poles or cross the equator.