goog.math.Range |
a
: number
One end of the range.
|
b
: number
The other end of the range.
|
No description.
Returns: !goog.math.Range
A clone of this Range.
|
code » | ||
No description.
Returns: number
Length of the range.
|
code » | ||
![]()
Extends this range to include the given point.
Arguments:
|
code » | ||
![]()
Extends this range to include the given range.
Arguments:
|
code » | ||
Returns a string representing the range.
Returns: string
In the form [-3.5, 8.13].
|
code » |
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 » |