Represents a range of integers, e.g. between 10 and 20.
Name | Description |
---|---|
Erosion(const GeoIntRange &, s32) | Erodes the given range by the given amount, and returns the result. |
GeoIntRange(s32, s32) | Construct the inclusive range of integers [x1,x2]. |
GeoIntRange() | Construct an empty range. |
Intersection(const GeoIntRange &, const GeoIntRange &) | Return the intersection of a and b. |
IsEmpty() | Return true if this is an empty range. |
Length() | Return the length of this range. |
Max() | Gets the upper end of this range. |
Min() | Gets the lower end of this range. |
operator+(s32) | Shifts this range by the given amount. |
operator+=(s32) | Increment this. |
Union(const GeoIntRange &, const GeoIntRange &) | Return the union of a and b. |
public: GeoIntRange Erosion
(
const GeoIntRange & a,
s32 v
)
Erodes the given range by the given amount, and returns the result.
public: GeoIntRange
(
s32 x1,
s32 x2
)
Construct the inclusive range of integers [x1,x2].
public: GeoIntRange()
Construct an empty range.
public: GeoIntRange Intersection
(
const GeoIntRange & a,
const GeoIntRange & b
)
Return the intersection of a and b.
public: bool IsEmpty() const
Return true if this is an empty range.
public: s32 Length() const
Return the length of this range.
public: s32 Max() const
Gets the upper end of this range.
public: s32 Min() const
Gets the lower end of this range.
public: GeoIntRange operator+
(
s32 incr
) const
Shifts this range by the given amount.
public: GeoIntRange & operator+=
(
s32 incr
)
Increment this.
public: GeoIntRange Union
(
const GeoIntRange & a,
const GeoIntRange & b
)
Return the union of a and b.