|
Three-dimensional array of sizes. More...
#include <size3.h>
Public Member Functions | |
GfSize3 () | |
Default constructor initializes components to zero. | |
GfSize3 (const GfSize3 &o) | |
Copy constructor. | |
GfSize3 (const GfVec3i &o) | |
Conversion from GfVec3i. | |
GfSize3 (const size_t v[3]) | |
Construct from an array. | |
GfSize3 (size_t v0, size_t v1, size_t v2) | |
Construct from three values. | |
GfSize3 & | Set (const size_t v[3]) |
Set to the values in v . | |
GfSize3 & | Set (size_t v0, size_t v1, size_t v2) |
Set to values passed directly. | |
size_t & | operator[] (size_t i) |
Array operator. | |
const size_t & | operator[] (size_t i) const |
Const array operator. | |
bool | operator== (const GfSize3 &v) const |
Component-wise equality. | |
bool | operator!= (const GfSize3 &v) const |
Component-wise inequality. | |
GfSize3 & | operator+= (const GfSize3 &v) |
Component-wise in-place addition. | |
GfSize3 & | operator-= (const GfSize3 &v) |
Component-wise in-place subtraction. | |
GfSize3 & | operator*= (GfSize3 const &v) |
Component-wise in-place multiplication. | |
GfSize3 & | operator*= (size_t d) |
Component-wise in-place multiplication by a scalar. | |
GfSize3 & | operator/= (size_t d) |
Component-wise in-place division by a scalar. | |
operator GfVec3i () const | |
Conversion to GfVec3i. | |
Friends | |
GfSize3 | operator+ (const GfSize3 &v1, const GfSize3 &v3) |
Component-wise addition. | |
GfSize3 | operator- (const GfSize3 &v1, const GfSize3 &v3) |
Component-wise subtraction. | |
GfSize3 | operator* (const GfSize3 &v1, const GfSize3 &v3) |
Component-wise multiplication. | |
GfSize3 | operator* (const GfSize3 &v1, size_t s) |
Component-wise multiplication by a scalar. | |
GfSize3 | operator* (size_t s, const GfSize3 &v1) |
Component-wise multiplication by a scalar. | |
GfSize3 | operator/ (const GfSize3 &v1, size_t s) |
Component-wise division by a scalar. | |
GF_API std::ostream & | operator<< (std::ostream &o, GfSize3 const &v) |
Output operator. | |
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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
Output operator.