|
SYS_FORCE_INLINE | UT_Vector2T ()=default |
|
SYS_FORCE_INLINE | UT_Vector2T (const UT_Vector2T< T > &that)=default |
|
SYS_FORCE_INLINE | UT_Vector2T (UT_Vector2T< T > &&that)=default |
|
constexpr SYS_FORCE_INLINE | UT_Vector2T (T v) |
|
constexpr SYS_FORCE_INLINE | UT_Vector2T (const T vx, const T vy) |
|
constexpr SYS_FORCE_INLINE | UT_Vector2T (const fpreal16 v[tuple_size]) |
|
constexpr SYS_FORCE_INLINE | UT_Vector2T (const fpreal32 v[tuple_size]) |
|
constexpr SYS_FORCE_INLINE | UT_Vector2T (const fpreal64 v[tuple_size]) |
|
constexpr SYS_FORCE_INLINE | UT_Vector2T (const int32 v[tuple_size]) |
|
constexpr SYS_FORCE_INLINE | UT_Vector2T (const int64 v[tuple_size]) |
|
| UT_Vector2T (const UT_Vector3T< T > &v) |
|
| UT_Vector2T (const UT_Vector4T< T > &v) |
|
template<typename S > |
SYS_FORCE_INLINE | UT_Vector2T (const UT_Vector2T< S > &v) |
| Our own type of any given value_type. More...
|
|
template<typename S , bool S_INSTANTIATED> |
SYS_FORCE_INLINE | UT_Vector2T (const UT_FixedVector< S, tuple_size, S_INSTANTIATED > &v) |
| Arbitrary UT_FixedVector of the same size. More...
|
|
SYS_FORCE_INLINE UT_Vector2T< T > & | operator= (const UT_Vector2T< T > &that)=default |
|
SYS_FORCE_INLINE UT_Vector2T< T > & | operator= (UT_Vector2T< T > &&that)=default |
|
template<typename S > |
SYS_FORCE_INLINE UT_Vector2T< T > & | operator= (const UT_Vector2T< S > &v) |
|
UT_Vector2T< T > & | operator= (const UT_Vector3T< T > &v) |
| Assignment operator that truncates a V3 to a V2. More...
|
|
UT_Vector2T< T > & | operator= (const UT_Vector4T< T > &v) |
| Assignment operator that truncates a V4 to a V2. More...
|
|
SYS_FORCE_INLINE UT_Vector2T< T > | operator- () const |
|
void | multiplyComponents (const UT_Vector2T< T > &v) |
|
T | whichSide (const UT_Vector2T< T > &e1, const UT_Vector2T< T > &e2) const |
|
template<typename S > |
UT_Vector2T< T > & | operator*= (const UT_Matrix2T< S > &mat) |
|
UT_Vector2T< T > | project (const UT_Vector2T< T > &u) const |
| Calculates the orthogonal projection of a vector u on the *this vector. More...
|
|
UT_Vector2T< T > | projection (const UT_Vector2T< T > &p, const UT_Vector2T< T > &v) const |
|
UT_Vector3T< T > | getBary (const UT_Vector2T< T > &t0, const UT_Vector2T< T > &t1, const UT_Vector2T< T > &t2, bool *degen=NULL) const |
|
unsigned | hash () const |
| Compute a hash. More...
|
|
void | assign (T xx=0.0f, T yy=0.0f) |
| Set the values of the vector components. More...
|
|
void | assign (const T *v) |
| Set the values of the vector components. More...
|
|
|
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 & | 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...
|
|
|
void | save (std::ostream &os, int binary=0) const |
| Protected I/O methods. More...
|
|
bool | load (UT_IStream &is) |
| Protected I/O methods. More...
|
|
|
bool | save (UT_JSONWriter &w) const |
|
bool | save (UT_JSONValue &v) const |
|
bool | load (UT_JSONParser &p) |
|
SYS_FORCE_INLINE | UT_FixedVector ()=default |
|
constexpr SYS_FORCE_INLINE | UT_FixedVector (const T that) noexcept |
| Initializes every component to the same value. More...
|
|
SYS_FORCE_INLINE | UT_FixedVector (const UT_FixedVector &that)=default |
|
SYS_FORCE_INLINE | UT_FixedVector (UT_FixedVector &&that)=default |
|
SYS_FORCE_INLINE | UT_FixedVector (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) noexcept |
|
constexpr SYS_FORCE_INLINE | UT_FixedVector (const S that[SIZE]) noexcept |
|
constexpr SYS_FORCE_INLINE
const T & | operator[] (exint i) const noexcept |
|
constexpr SYS_FORCE_INLINE T & | operator[] (exint i) noexcept |
|
constexpr SYS_FORCE_INLINE
const T * | data () const noexcept |
|
constexpr SYS_FORCE_INLINE T * | data () noexcept |
|
constexpr SYS_FORCE_INLINE
UT_FixedVector & | operator= (const UT_FixedVector &that)=default |
|
constexpr SYS_FORCE_INLINE
UT_FixedVector & | operator= (UT_FixedVector &&that)=default |
|
constexpr SYS_FORCE_INLINE
UT_FixedVector & | operator= (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) noexcept |
|
constexpr SYS_FORCE_INLINE
const UT_FixedVector & | operator= (T that) noexcept |
|
constexpr SYS_FORCE_INLINE void | operator+= (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) noexcept |
|
constexpr SYS_FORCE_INLINE void | operator+= (T that) noexcept |
|
constexpr SYS_FORCE_INLINE
UT_FixedVector< typename
UT_StorageBetter< T, S >::Type,
SIZE > | operator+ (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const noexcept |
|
constexpr SYS_FORCE_INLINE void | operator-= (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) noexcept |
|
constexpr SYS_FORCE_INLINE void | operator-= (T that) noexcept |
|
constexpr SYS_FORCE_INLINE
UT_FixedVector< typename
UT_StorageBetter< T, S >::Type,
SIZE > | operator- (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const noexcept |
|
constexpr SYS_FORCE_INLINE
UT_FixedVector< T, SIZE > | operator- () const noexcept |
|
constexpr SYS_FORCE_INLINE void | operator*= (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) noexcept |
|
constexpr SYS_FORCE_INLINE void | operator*= (T that) noexcept |
|
constexpr SYS_FORCE_INLINE
UT_FixedVector< typename
UT_StorageBetter< T, S >::Type,
SIZE > | operator* (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const noexcept |
|
constexpr SYS_FORCE_INLINE
UT_FixedVector< T, SIZE > | operator* (T that) const noexcept |
|
constexpr SYS_FORCE_INLINE void | operator/= (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) noexcept |
|
constexpr SYS_FORCE_INLINE void | operator/= (T that) noexcept |
|
constexpr SYS_FORCE_INLINE
UT_FixedVector< typename
UT_StorageBetter< T, S >::Type,
SIZE > | operator/ (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const noexcept |
|
constexpr SYS_FORCE_INLINE
UT_FixedVector< T, SIZE > | operator/ (T that) const noexcept |
|
constexpr SYS_FORCE_INLINE void | negate () noexcept |
|
constexpr SYS_FORCE_INLINE bool | operator== (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const noexcept |
|
constexpr 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 |
|
constexpr SYS_FORCE_INLINE
UT_StorageAtLeast32Bit< T, T >
::Type | length2 () const noexcept |
|
SYS_FORCE_INLINE MF | 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 MF | normalize () |
|
constexpr SYS_FORCE_INLINE bool | operator< (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const noexcept |
|
constexpr SYS_FORCE_INLINE bool | operator<= (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const noexcept |
|
constexpr SYS_FORCE_INLINE bool | operator> (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const noexcept |
|
constexpr SYS_FORCE_INLINE bool | operator>= (const UT_FixedVector< S, SIZE, S_INSTANTIATED > &that) const noexcept |
|
template<typename T>
class UT_Vector2T< T >
2D Vector class.
Definition at line 149 of file UT_Vector2.h.