|
| void | SetEmpty () |
| | Sets the range to an empty interval.
|
| |
| | GfRange2f () |
| | The default constructor creates an empty range.
|
| |
| | GfRange2f (const GfVec2f &min, const GfVec2f &max) |
| | This constructor initializes the minimum and maximum points.
|
| |
| GF_API | GfRange2f (class GfRange2d const &other) |
| | Construct from GfRange2d.
|
| |
| const GfVec2f & | GetMin () const |
| | Returns the minimum value of the range.
|
| |
| const GfVec2f & | GetMax () const |
| | Returns the maximum value of the range.
|
| |
| GfVec2f | GetSize () const |
| | Returns the size of the range.
|
| |
| GfVec2f | GetMidpoint () const |
| | Returns the midpoint of the range, that is, 0.5*(min+max).
|
| |
| void | SetMin (const GfVec2f &min) |
| | Sets the minimum value of the range.
|
| |
| void | SetMax (const GfVec2f &max) |
| | Sets the maximum value of the range.
|
| |
| bool | IsEmpty () const |
| | Returns whether the range is empty (max < min).
|
| |
| void | ExtendBy (const GfVec2f &point) |
| | Modifies the range if necessary to surround the given value.
|
| |
| void | ExtendBy (const GfRange2f &range) |
| | Modifies the range if necessary to surround the given range.
|
| |
| bool | Contains (const GfVec2f &point) const |
| | Returns true if the point is located inside the range.
|
| |
| bool | Contains (const GfRange2f &range) const |
| | Returns true if the range is located entirely inside the range.
|
| |
| bool | IsInside (const GfVec2f &point) const |
| | Returns true if the point is located inside the range.
|
| |
| bool | IsInside (const GfRange2f &range) const |
| | Returns true if the range is located entirely inside the range.
|
| |
| bool | IsOutside (const GfRange2f &range) const |
| | Returns true if the range is located entirely outside the range.
|
| |
| const GfRange2f & | UnionWith (const GfRange2f &b) |
| | Extend this to include b.
|
| |
| const GfRange2f & | UnionWith (const GfVec2f &b) |
| | Extend this to include b.
|
| |
| const GfRange2f & | Union (const GfRange2f &b) |
| | Extend this to include b.
|
| |
| const GfRange2f & | Union (const GfVec2f &b) |
| | Extend this to include b.
|
| |
| const GfRange2f & | IntersectWith (const GfRange2f &b) |
| | Modifies this range to hold its intersection with b and returns the result.
|
| |
| const GfRange2f & | Intersection (const GfRange2f &b) |
| | Modifies this range to hold its intersection with b and returns the result.
|
| |
| GfRange2f & | operator+= (const GfRange2f &b) |
| | unary sum.
|
| |
| GfRange2f & | operator-= (const GfRange2f &b) |
| | unary difference.
|
| |
| GfRange2f & | operator*= (double m) |
| | unary multiply.
|
| |
| GfRange2f & | operator/= (double m) |
| | unary division.
|
| |
| GfRange2f | operator+ (const GfRange2f &b) const |
| | binary sum.
|
| |
| GfRange2f | operator- (const GfRange2f &b) const |
| | binary difference.
|
| |
| bool | operator== (const GfRange2f &b) const |
| | The min and max points must match exactly for equality.
|
| |
| bool | operator!= (const GfRange2f &b) const |
| |
| GF_API bool | operator== (const GfRange2d &other) const |
| | Compare this range to a GfRange2d.
|
| |
| GF_API bool | operator!= (const GfRange2d &other) const |
| |
| GF_API double | GetDistanceSquared (const GfVec2f &p) const |
| | Compute the squared distance from a point to the range.
|
| |
| GF_API GfVec2f | GetCorner (size_t i) const |
| | Returns the ith corner of the range, in the following order: SW, SE, NW, NE.
|
| |
| GF_API GfRange2f | GetQuadrant (size_t i) const |
| | Returns the ith quadrant of the range, in the following order: SW, SE, NW, NE.
|
| |
Basic type: 2-dimensional floating point range.
This class represents a 2-dimensional range (or interval) All operations are component-wise and conform to interval mathematics. An empty range is one where max < min. The default empty is [FLT_MAX,-FLT_MAX]
Definition at line 46 of file range2f.h.