| HDK
    | 
#include <vec4f.h>
| Public Types | |
| typedef float | ScalarType | 
| Scalar element type and dimension.  More... | |
| Public Member Functions | |
| GfVec4f ()=default | |
| Default constructor does no initialization.  More... | |
| constexpr | GfVec4f (float value) | 
| Initialize all elements to a single value.  More... | |
| constexpr | GfVec4f (float s0, float s1, float s2, float s3) | 
| Initialize all elements with explicit arguments.  More... | |
| template<class Scl > | |
| constexpr | GfVec4f (Scl const *p) | 
| Construct with pointer to values.  More... | |
| GfVec4f (class GfVec4d const &other) | |
| Construct from GfVec4d.  More... | |
| GfVec4f (class GfVec4h const &other) | |
| Implicitly convert from GfVec4h.  More... | |
| GfVec4f (class GfVec4i const &other) | |
| Implicitly convert from GfVec4i.  More... | |
| GfVec4f & | Set (float s0, float s1, float s2, float s3) | 
| Set all elements with passed arguments.  More... | |
| GfVec4f & | Set (float const *a) | 
| Set all elements with a pointer to data.  More... | |
| float const * | data () const | 
| Direct data access.  More... | |
| float * | data () | 
| float const * | GetArray () const | 
| float const & | operator[] (size_t i) const | 
| Indexing.  More... | |
| float & | operator[] (size_t i) | 
| bool | operator== (GfVec4f const &other) const | 
| Equality comparison.  More... | |
| bool | operator!= (GfVec4f const &other) const | 
| GF_API bool | operator== (class GfVec4d const &other) const | 
| Equality comparison.  More... | |
| GF_API bool | operator== (class GfVec4h const &other) const | 
| Equality comparison.  More... | |
| GF_API bool | operator== (class GfVec4i const &other) const | 
| Equality comparison.  More... | |
| GfVec4f | operator- () const | 
| Create a vec with negated elements.  More... | |
| GfVec4f & | operator+= (GfVec4f const &other) | 
| Addition.  More... | |
| GfVec4f & | operator-= (GfVec4f const &other) | 
| Subtraction.  More... | |
| GfVec4f & | operator*= (double s) | 
| Multiplication by scalar.  More... | |
| GfVec4f | operator* (double s) const | 
| GfVec4f & | operator/= (double s) | 
| Division by scalar.  More... | |
| GfVec4f | operator/ (double s) const | 
| float | operator* (GfVec4f const &v) const | 
| See GfDot().  More... | |
| GfVec4f | GetProjection (GfVec4f const &v) const | 
| GfVec4f | GetComplement (GfVec4f const &b) const | 
| float | GetLengthSq () const | 
| Squared length.  More... | |
| float | GetLength () const | 
| Length.  More... | |
| float | Normalize (float eps=GF_MIN_VECTOR_LENGTH) | 
| GfVec4f | GetNormalized (float eps=GF_MIN_VECTOR_LENGTH) const | 
| Static Public Member Functions | |
| static GfVec4f | XAxis () | 
| Create a unit vector along the X-axis.  More... | |
| static GfVec4f | YAxis () | 
| Create a unit vector along the Y-axis.  More... | |
| static GfVec4f | ZAxis () | 
| Create a unit vector along the Z-axis.  More... | |
| static GfVec4f | WAxis () | 
| Create a unit vector along the W-axis.  More... | |
| static GfVec4f | Axis (size_t i) | 
| Static Public Attributes | |
| static const size_t | dimension = 4 | 
| Friends | |
| size_t | hash_value (GfVec4f const &vec) | 
| Hash.  More... | |
| GfVec4f | operator+ (GfVec4f const &l, GfVec4f const &r) | 
| GfVec4f | operator- (GfVec4f const &l, GfVec4f const &r) | 
| GfVec4f | operator* (double s, GfVec4f const &v) | 
Basic type for a vector of 4 float components.
Represents a vector of 4 components of type float. It is intended to be fast and simple. 
| typedef float GfVec4f::ScalarType | 
| 
 | default | 
Default constructor does no initialization.
| 
 | inlineexplicit | 
| 
 | inlineexplicit | 
| 
 | inlineexplicit | 
| 
 | inlinestatic | 
| 
 | inline | 
Returns the orthogonal complement of this->GetProjection(b). That is: 
| 
 | inline | 
| 
 | inline | 
Normalizes the vector in place to unit length, returning the length before normalization. If the length of the vector is smaller than eps, then the vector is set to vector/eps. The original length of the vector is returned. See also GfNormalize().
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inlinestatic | 
| 
 | inlinestatic | 
| 
 | inlinestatic | 
| 
 | inlinestatic |