HDK
|
#include <size3.h>
Public Member Functions | |
GfSize3 () | |
Default constructor initializes components to zero. More... | |
GfSize3 (const GfSize3 &o) | |
Copy constructor. More... | |
GfSize3 (const GfVec3i &o) | |
Conversion from GfVec3i. More... | |
GfSize3 (const size_t v[3]) | |
Construct from an array. More... | |
GfSize3 (size_t v0, size_t v1, size_t v2) | |
Construct from three values. More... | |
GfSize3 & | Set (const size_t v[3]) |
Set to the values in v . More... | |
GfSize3 & | Set (size_t v0, size_t v1, size_t v2) |
Set to values passed directly. More... | |
size_t & | operator[] (size_t i) |
Array operator. More... | |
const size_t & | operator[] (size_t i) const |
Const array operator. More... | |
bool | operator== (const GfSize3 &v) const |
Component-wise equality. More... | |
bool | operator!= (const GfSize3 &v) const |
Component-wise inequality. More... | |
GfSize3 & | operator+= (const GfSize3 &v) |
Component-wise in-place addition. More... | |
GfSize3 & | operator-= (const GfSize3 &v) |
Component-wise in-place subtraction. More... | |
GfSize3 & | operator*= (GfSize3 const &v) |
Component-wise in-place multiplication. More... | |
GfSize3 & | operator*= (size_t d) |
Component-wise in-place multiplication by a scalar. More... | |
GfSize3 & | operator/= (size_t d) |
Component-wise in-place division by a scalar. More... | |
operator GfVec3i () const | |
Conversion to GfVec3i. More... | |
Friends | |
GfSize3 | operator+ (const GfSize3 &v1, const GfSize3 &v3) |
Component-wise addition. More... | |
GfSize3 | operator- (const GfSize3 &v1, const GfSize3 &v3) |
Component-wise subtraction. More... | |
GfSize3 | operator* (const GfSize3 &v1, const GfSize3 &v3) |
Component-wise multiplication. More... | |
GfSize3 | operator* (const GfSize3 &v1, size_t s) |
Component-wise multiplication by a scalar. More... | |
GfSize3 | operator* (size_t s, const GfSize3 &v1) |
Component-wise multiplication by a scalar. More... | |
GfSize3 | operator/ (const GfSize3 &v1, size_t s) |
Component-wise division by a scalar. More... | |
GF_API std::ostream & | operator<< (std::ostream &o, GfSize3 const &v) |
Output operator. More... | |
Three-dimensional array of sizes
GfSize3 is used to represent triples of counts. It is based on the datatype size_t, and thus can only represent non-negative values in each dimension. If you need to represent negative numbers as well, use GfVeci.
Usage of GfSize3 is similar to that of GfVec3i, except that all mathematical operations are componentwise (including multiplication).
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |