|
SYS_FORCE_INLINE | UT_Vector4T ()=default |
|
SYS_FORCE_INLINE | UT_Vector4T (const UT_Vector4T< T > &that)=default |
|
SYS_FORCE_INLINE | UT_Vector4T (UT_Vector4T< T > &&that)=default |
|
SYS_FORCE_INLINE | UT_Vector4T (T vx, T vy, T vz, T vw=1.0f) |
|
SYS_FORCE_INLINE | UT_Vector4T (const fpreal32 v[tuple_size]) |
|
SYS_FORCE_INLINE | UT_Vector4T (const fpreal64 v[tuple_size]) |
|
SYS_FORCE_INLINE | UT_Vector4T (const int32 v[tuple_size]) |
|
SYS_FORCE_INLINE | UT_Vector4T (const int64 v[tuple_size]) |
|
SYS_FORCE_INLINE | UT_Vector4T (const UT_Vector2T< T > &v) |
|
SYS_FORCE_INLINE | UT_Vector4T (const UT_Vector3T< T > &v, T w=1.f) |
|
template<typename S > |
SYS_FORCE_INLINE | UT_Vector4T (const UT_Vector4T< S > &v) |
| Our own type of any given value_type. More...
|
|
template<typename S , bool S_INSTANTIATED> |
SYS_FORCE_INLINE | UT_Vector4T (const UT_FixedVector< S, tuple_size, S_INSTANTIATED > &v) |
| Arbitrary UT_FixedVector of the same size. More...
|
|
SYS_FORCE_INLINE UT_Vector4T< T > & | operator= (const UT_Vector4T< T > &that)=default |
|
SYS_FORCE_INLINE UT_Vector4T< T > & | operator= (UT_Vector4T< T > &&that)=default |
|
template<typename S > |
SYS_FORCE_INLINE UT_Vector4T< T > & | operator= (const UT_Vector4T< S > &v) |
|
UT_Vector4T< T > & | operator= (const UT_Vector3T< T > &v) |
|
int | equalZero3 (T tol=0.00001f) const |
|
void | clampZero (T tol=0.00001f) |
|
void | clampZero3 (T tol=0.00001f) |
|
void | negate3 () |
|
void | multiplyComponents (const UT_Vector4T< T > &v) |
|
int | isEqual (const UT_Vector3T< T > &vect, T tol=0.00001f) const |
|
unsigned | hash () const |
| Compute a hash. More...
|
|
void | assign (T xx=0.0f, T yy=0.0f, T zz=0.0f, T ww=1.0f) |
| Set the values of the vector components. More...
|
|
void | assign (const T *v, int size=tuple_size) |
| Set the values of the vector components. More...
|
|
void | save (std::ostream &os, int binary=0) const |
|
bool | load (UT_IStream &is) |
|
|
template<typename S > |
void | rowVecMult (const UT_Matrix4T< S > &m) |
|
template<typename S > |
void | colVecMult (const UT_Matrix4T< S > &m) |
|
|
template<typename S > |
void | rowVecMult3 (const UT_Matrix4T< S > &m) |
|
|
template<typename S > |
UT_Vector4T< T > & | operator*= (const UT_Matrix4T< S > &mat) |
|
template<typename S > |
void | multiply3 (const UT_Matrix4T< S > &mat) |
|
template<typename S > |
void | multiply3 (UT_Vector4T< T > &dest, const UT_Matrix4T< S > &mat) const |
|
|
int | findMinAbsAxis () const |
| These allow you to find out what indices to use for different axes. More...
|
|
int | findMaxAbsAxis () const |
| These allow you to find out what indices to use for different axes. More...
|
|
|
T & | x () |
|
T | x () const |
|
T & | y () |
|
T | y () const |
|
T & | z () |
|
T | z () const |
|
T & | w () |
|
T | w () const |
|
T & | operator() (unsigned i) |
|
T | operator() (unsigned i) const |
|
|
void | homogenize () |
| Express the point in homogeneous coordinates or vice-versa. More...
|
|
void | dehomogenize () |
| Express the point in homogeneous coordinates or vice-versa. More...
|
|
|
bool | save (UT_JSONWriter &w) const |
|
bool | save (UT_JSONValue &v) const |
|
bool | load (UT_JSONParser &p) |
|
SYS_FORCE_INLINE | UT_FixedVector ()=default |
|
SYS_FORCE_INLINE | UT_FixedVector (T that) noexcept |
| Initializes every component to the same value. More...
|
|
SYS_FORCE_INLINE | UT_FixedVector (const ThisType &that)=default |
|
SYS_FORCE_INLINE | UT_FixedVector (ThisType &&that)=default |
|
SYS_FORCE_INLINE | UT_FixedVector (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) noexcept |
|
SYS_FORCE_INLINE | UT_FixedVector (const S that[SIZE]) noexcept |
|
SYS_FORCE_INLINE const T & | operator[] (exint i) const noexcept |
|
SYS_FORCE_INLINE T & | operator[] (exint i) noexcept |
|
SYS_FORCE_INLINE constexpr
const T * | data () const noexcept |
|
SYS_FORCE_INLINE T * | data () noexcept |
|
SYS_FORCE_INLINE ThisType & | operator= (const ThisType &that)=default |
|
SYS_FORCE_INLINE ThisType & | operator= (ThisType &&that)=default |
|
SYS_FORCE_INLINE ThisType & | operator= (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) noexcept |
|
SYS_FORCE_INLINE const ThisType & | operator= (T that) noexcept |
|
SYS_FORCE_INLINE void | operator+= (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) |
|
SYS_FORCE_INLINE void | operator+= (T that) |
|
SYS_FORCE_INLINE
UT_FixedVector< typename
UT_StorageBetter< T, S >::Type,
SIZE > | operator+ (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const |
|
SYS_FORCE_INLINE void | operator-= (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) |
|
SYS_FORCE_INLINE void | operator-= (T that) |
|
SYS_FORCE_INLINE
UT_FixedVector< typename
UT_StorageBetter< T, S >::Type,
SIZE > | operator- (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const |
|
SYS_FORCE_INLINE
UT_FixedVector< T, SIZE > | operator- () const |
|
SYS_FORCE_INLINE void | operator*= (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) |
|
SYS_FORCE_INLINE void | operator*= (T that) |
|
SYS_FORCE_INLINE
UT_FixedVector< typename
UT_StorageBetter< T, S >::Type,
SIZE > | operator* (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const |
|
SYS_FORCE_INLINE
UT_FixedVector< T, SIZE > | operator* (T that) const |
|
SYS_FORCE_INLINE void | operator/= (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) |
|
SYS_FORCE_INLINE void | operator/= (T that) |
|
SYS_FORCE_INLINE
UT_FixedVector< typename
UT_StorageBetter< T, S >::Type,
SIZE > | operator/ (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const |
|
SYS_FORCE_INLINE
UT_FixedVector< T, SIZE > | operator/ (T that) const |
|
SYS_FORCE_INLINE void | negate () |
|
SYS_FORCE_INLINE bool | operator== (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const noexcept |
|
SYS_FORCE_INLINE bool | operator!= (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const noexcept |
|
SYS_FORCE_INLINE bool | isNan () const |
|
SYS_FORCE_INLINE bool | isFinite () const |
|
SYS_FORCE_INLINE bool | isZero () const noexcept |
|
SYS_FORCE_INLINE bool | equalZero (T tol=T(SYS_FTOLERANCE)) const |
|
SYS_FORCE_INLINE bool | isEqual (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that, S tol=S(SYS_FTOLERANCE)) const |
|
SYS_FORCE_INLINE T | maxComponent () const |
|
SYS_FORCE_INLINE T | minComponent () const |
|
SYS_FORCE_INLINE T | avgComponent () const |
|
SYS_FORCE_INLINE
UT_StorageAtLeast32Bit< T, T >
::Type | length2 () const noexcept |
|
SYS_FORCE_INLINE Storage::MathFloat | length () const |
|
SYS_FORCE_INLINE
UT_StorageAtLeast32Bit< T, S >
::Type | dot (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const |
|
SYS_FORCE_INLINE
UT_StorageAtLeast32Bit< T, S >
::Type | distance2 (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const |
|
SYS_FORCE_INLINE UT_StorageNum
< typename UT_StorageBetter< T,
S >::Type >::MathFloat | distance (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const |
|
SYS_FORCE_INLINE Storage::MathFloat | normalize () |
|
SYS_FORCE_INLINE bool | operator< (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const noexcept |
|
SYS_FORCE_INLINE bool | operator<= (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const noexcept |
|
SYS_FORCE_INLINE bool | operator> (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const noexcept |
|
SYS_FORCE_INLINE bool | operator>= (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const noexcept |
|
template<typename T>
class UT_Vector4T< T >
4D Vector class.
- Examples:
- COP2/COP2_SampleGenerator.h, and tetprim/GEO_PrimTetra.h.
Definition at line 166 of file UT_Vector4.h.