Given two ranges on the same dimension, this returns a range that covers
both ranges.
Arguments:
Returns: !goog.math.Range
A new Range representing the bounding
range.
|
code » | |||
Given two ranges, returns true if the first range completely overlaps the
second.
Arguments:
Returns: boolean
True if b is contained inside a, false otherwise.
|
code » | |||
Given a range and a point, returns true if the range contains the point.
Arguments:
Returns: boolean
True if p is contained inside range, false otherwise.
|
code » | |||
Compares ranges for equality.
Arguments:
Returns: boolean
True iff both the starts and the ends of the ranges are
equal, or if both ranges are null.
|
code » | |||
Creates a goog.math.Range from an array of two numbers.
|
code » | |||
Given two ranges on the same dimension, determines whether they intersect.
Arguments:
Returns: boolean
Whether they intersect.
|
code » | |||
Given two ranges on the same dimension, this method returns the intersection
of those ranges.
Arguments:
Returns: goog.math.Range
A new Range representing the intersection of two
ranges, or null if there is no intersection. Ranges are assumed to
include their end points, and the intersection can be a point.
|
code » |