| goog.math.Box |
|
top
:
Top.
|
|
right
:
Right.
|
|
bottom
:
Bottom.
|
|
left
:
Left.
|
|
Creates a copy of the box with the same dimensions.
Returns:
A clone of this Box.
|
code » | |||||
|
Returns whether the box contains a coordinate or another box.
Arguments:
Returns:
Whether the box contains the coordinate or other box.
|
code » | |||||
|
Expands box with the given margins.
Arguments:
Returns:
A reference to this Box.
|
code » | |||||
expandToInclude(box)
Expand this box to include another box.
NOTE(user): This is used in code that needs to be very fast, please don't
add functionality to this function at the expense of speed (variable
arguments, accepting multiple argument types, etc).
Arguments:
|
code » | |||||
|
Returns a nice string representing the box.
Returns:
In the form (50t, 73r, 24b, 13l).
|
code » |
|
Creates a Box by bounding a collection of goog.math.Coordinate objects
Arguments:
Returns:
A Box containing all the specified Coordinates.
|
code » | ||||
|
Returns whether a box contains a coordinate or another box.
Arguments:
Returns:
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:
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:
True iff the boxes are equal, or if both are null.
|
code » | ||||
|
Returns whether two boxes intersect.
Arguments:
Returns:
Whether the boxes intersect.
|
code » | ||||
|
Returns whether two boxes would intersect with additional padding.
Arguments:
Returns:
Whether the boxes intersect.
|
code » |