This is the documentation for Enlighten.
class Geo GeoIntRange
class Geo::GeoIntRange
Represents a range of integers, e.g. between 10 and 20.
Functions
Name | Description |
|---|---|
Erodes the given range by the given amount, and returns the result. | |
Construct the inclusive range of integers [x1,x2]. | |
Construct an empty range. | |
Return the intersection of a and b. | |
Return true if this is an empty range. | |
Return the length of this range. | |
Gets the upper end of this range. | |
Gets the lower end of this range. | |
Shifts this range by the given amount. | |
Increment this. | |
Return the union of a and b. |
static GeoIntRange Geo::GeoIntRange::Erosion
public: GeoIntRange Erosion
(
const GeoIntRange & a,
s32 v
)
Erodes the given range by the given amount, and returns the result.
Geo::GeoIntRange::GeoIntRange
public: GeoIntRange
(
s32 x1,
s32 x2
)
Construct the inclusive range of integers [x1,x2].
Geo::GeoIntRange::GeoIntRange
public: GeoIntRange()
Construct an empty range.
static GeoIntRange Geo::GeoIntRange::Intersection
public: GeoIntRange Intersection
(
const GeoIntRange & a,
const GeoIntRange & b
)