Creates a Box by bounding a collection of goog.math.Coordinate objects
Arguments:
Returns: !goog.math.Box
A Box containing all the specified Coordinates.
|
code » | ||||
Returns whether a box contains a coordinate or another box.
Arguments:
Returns: boolean
Whether the box contains the coordinate or other box.
|
code » | ||||
Returns the distance between a coordinate and the nearest corner/side of a
box. Returns zero if the coordinate is inside the box.
Arguments:
Returns: number
The distance between
coord and the nearest
corner/side of box , or zero if coord is inside
box .
|
code » | ||||
Compares boxes for equality.
Arguments:
Returns: boolean
True iff the boxes are equal, or if both are null.
|
code » | ||||
Returns whether two boxes intersect.
Arguments:
Returns: boolean
Whether the boxes intersect.
|
code » | ||||
Returns whether two boxes would intersect with additional padding.
Arguments:
Returns: boolean
Whether the boxes intersect.
|
code » | ||||
Returns the relative x position of a coordinate compared to a box. Returns
zero if the coordinate is inside the box.
Arguments:
Returns: number
The x position of
coord relative to the nearest
side of box , or zero if coord is inside box .
|
code » | ||||
Returns the relative y position of a coordinate compared to a box. Returns
zero if the coordinate is inside the box.
Arguments:
Returns: number
The y position of
coord relative to the nearest
side of box , or zero if coord is inside box .
|
code » |