|
HDK
|
#include <vec3i.h>
Public Types | |
| typedef int | ScalarType |
| Scalar element type and dimension. More... | |
Public Member Functions | |
| GfVec3i ()=default | |
| Default constructor does no initialization. More... | |
| constexpr | GfVec3i (int value) |
| Initialize all elements to a single value. More... | |
| constexpr | GfVec3i (int s0, int s1, int s2) |
| Initialize all elements with explicit arguments. More... | |
| template<class Scl > | |
| constexpr | GfVec3i (Scl const *p) |
| Construct with pointer to values. More... | |
| GfVec3i & | Set (int s0, int s1, int s2) |
| Set all elements with passed arguments. More... | |
| GfVec3i & | Set (int const *a) |
| Set all elements with a pointer to data. More... | |
| int const * | data () const |
| Direct data access. More... | |
| int * | data () |
| int const * | GetArray () const |
| int const & | operator[] (size_t i) const |
| Indexing. More... | |
| int & | operator[] (size_t i) |
| bool | operator== (GfVec3i const &other) const |
| Equality comparison. More... | |
| bool | operator!= (GfVec3i const &other) const |
| GF_API bool | operator== (class GfVec3d const &other) const |
| Equality comparison. More... | |
| GF_API bool | operator== (class GfVec3f const &other) const |
| Equality comparison. More... | |
| GF_API bool | operator== (class GfVec3h const &other) const |
| Equality comparison. More... | |
| GfVec3i | operator- () const |
| Create a vec with negated elements. More... | |
| GfVec3i & | operator+= (GfVec3i const &other) |
| Addition. More... | |
| GfVec3i & | operator-= (GfVec3i const &other) |
| Subtraction. More... | |
| GfVec3i & | operator*= (double s) |
| Multiplication by scalar. More... | |
| GfVec3i | operator* (double s) const |
| GfVec3i & | operator/= (int s) |
| Division by scalar. More... | |
| GfVec3i | operator/ (int s) const |
| int | operator* (GfVec3i const &v) const |
| See GfDot(). More... | |
| GfVec3i | GetProjection (GfVec3i const &v) const |
| GfVec3i | GetComplement (GfVec3i const &b) const |
| int | GetLengthSq () const |
| Squared length. More... | |
Static Public Member Functions | |
| static GfVec3i | XAxis () |
| Create a unit vector along the X-axis. More... | |
| static GfVec3i | YAxis () |
| Create a unit vector along the Y-axis. More... | |
| static GfVec3i | ZAxis () |
| Create a unit vector along the Z-axis. More... | |
| static GfVec3i | Axis (size_t i) |
Static Public Attributes | |
| static const size_t | dimension = 3 |
Friends | |
| size_t | hash_value (GfVec3i const &vec) |
| Hash. More... | |
| GfVec3i | operator+ (GfVec3i const &l, GfVec3i const &r) |
| GfVec3i | operator- (GfVec3i const &l, GfVec3i const &r) |
| GfVec3i | operator* (double s, GfVec3i const &v) |
Basic type for a vector of 3 int components.
Represents a vector of 3 components of type int. It is intended to be fast and simple.
| typedef int GfVec3i::ScalarType |
|
default |
Default constructor does no initialization.
|
inlineexplicit |
|
inlineexplicit |
|
inlinestatic |
|
inline |
Returns the orthogonal complement of this->GetProjection(b). That is:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |