|
| void | SetEmpty () |
| | Sets the range to an empty interval.
|
| |
| | GfRange3d () |
| | The default constructor creates an empty range.
|
| |
| | GfRange3d (const GfVec3d &min, const GfVec3d &max) |
| | This constructor initializes the minimum and maximum points.
|
| |
| GF_API | GfRange3d (class GfRange3f const &other) |
| | Implicitly convert from GfRange3f.
|
| |
| const GfVec3d & | GetMin () const |
| | Returns the minimum value of the range.
|
| |
| const GfVec3d & | GetMax () const |
| | Returns the maximum value of the range.
|
| |
| GfVec3d | GetSize () const |
| | Returns the size of the range.
|
| |
| GfVec3d | GetMidpoint () const |
| | Returns the midpoint of the range, that is, 0.5*(min+max).
|
| |
| void | SetMin (const GfVec3d &min) |
| | Sets the minimum value of the range.
|
| |
| void | SetMax (const GfVec3d &max) |
| | Sets the maximum value of the range.
|
| |
| bool | IsEmpty () const |
| | Returns whether the range is empty (max < min).
|
| |
| void | ExtendBy (const GfVec3d &point) |
| | Modifies the range if necessary to surround the given value.
|
| |
| void | ExtendBy (const GfRange3d &range) |
| | Modifies the range if necessary to surround the given range.
|
| |
| bool | Contains (const GfVec3d &point) const |
| | Returns true if the point is located inside the range.
|
| |
| bool | Contains (const GfRange3d &range) const |
| | Returns true if the range is located entirely inside the range.
|
| |
| bool | IsInside (const GfVec3d &point) const |
| | Returns true if the point is located inside the range.
|
| |
| bool | IsInside (const GfRange3d &range) const |
| | Returns true if the range is located entirely inside the range.
|
| |
| bool | IsOutside (const GfRange3d &range) const |
| | Returns true if the range is located entirely outside the range.
|
| |
| const GfRange3d & | UnionWith (const GfRange3d &b) |
| | Extend this to include b.
|
| |
| const GfRange3d & | UnionWith (const GfVec3d &b) |
| | Extend this to include b.
|
| |
| const GfRange3d & | Union (const GfRange3d &b) |
| | Extend this to include b.
|
| |
| const GfRange3d & | Union (const GfVec3d &b) |
| | Extend this to include b.
|
| |
| const GfRange3d & | IntersectWith (const GfRange3d &b) |
| | Modifies this range to hold its intersection with b and returns the result.
|
| |
| const GfRange3d & | Intersection (const GfRange3d &b) |
| | Modifies this range to hold its intersection with b and returns the result.
|
| |
| GfRange3d & | operator+= (const GfRange3d &b) |
| | unary sum.
|
| |
| GfRange3d & | operator-= (const GfRange3d &b) |
| | unary difference.
|
| |
| GfRange3d & | operator*= (double m) |
| | unary multiply.
|
| |
| GfRange3d & | operator/= (double m) |
| | unary division.
|
| |
| GfRange3d | operator+ (const GfRange3d &b) const |
| | binary sum.
|
| |
| GfRange3d | operator- (const GfRange3d &b) const |
| | binary difference.
|
| |
| bool | operator== (const GfRange3d &b) const |
| | The min and max points must match exactly for equality.
|
| |
| bool | operator!= (const GfRange3d &b) const |
| |
| GF_API bool | operator== (const GfRange3f &other) const |
| | Compare this range to a GfRange3f.
|
| |
| GF_API bool | operator!= (const GfRange3f &other) const |
| |
| GF_API double | GetDistanceSquared (const GfVec3d &p) const |
| | Compute the squared distance from a point to the range.
|
| |
| GF_API GfVec3d | GetCorner (size_t i) const |
| | Returns the ith corner of the range, in the following order: LDB, RDB, LUB, RUB, LDF, RDF, LUF, RUF.
|
| |
| GF_API GfRange3d | GetOctant (size_t i) const |
| | Returns the ith octant of the range, in the following order: LDB, RDB, LUB, RUB, LDF, RDF, LUF, RUF.
|
| |
Basic type: 3-dimensional floating point range.
This class represents a 3-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 range3d.h.
| GF_API GfVec3d GetCorner |
( |
size_t |
i | ) |
const |
Returns the ith corner of the range, in the following order: LDB, RDB, LUB, RUB, LDF, RDF, LUF, RUF.
Where L/R is left/right, D/U is down/up, and B/F is back/front.
Returns the ith octant of the range, in the following order: LDB, RDB, LUB, RUB, LDF, RDF, LUF, RUF.
Where L/R is left/right, D/U is down/up, and B/F is back/front.