goog.math.Range
Classgoog.math.Range(a, b)
A number range.
a
{number
}
b
{number
}
.boundingRange(a, b)
Given two ranges on the same dimension, this returns a range that covers both ranges.
a
{goog.math.Range
}
b
{goog.math.Range
}
goog.math.Range
}
.clone()
goog.math.Range
}
.contains(a, b)
Given two ranges, returns true if the first range completely overlaps the second.
a
{goog.math.Range
}
b
{goog.math.Range
}
boolean
}
.containsPoint(range, p)
Given a range and a point, returns true if the range contains the point.
range
{goog.math.Range
}
p
{number
}
boolean
}
.end
{number
}The highest value in the range.
.equals(a, b)
Compares ranges for equality.
a
{goog.math.Range
}
b
{goog.math.Range
}
boolean
}
.hasIntersection(a, b)
Given two ranges on the same dimension, determines whether they intersect.
a
{goog.math.Range
}
b
{goog.math.Range
}
boolean
}
.intersection(a, b)
Given two ranges on the same dimension, this method returns the intersection of those ranges.
a
{goog.math.Range
}
b
{goog.math.Range
}
goog.math.Range
}
.start
{number
}The lowest value in the range.
.toString()
Returns a string representing the range.
string
}