#include "UT_API.h"#include <iostream.h>#include <limits.h>#include "UT_Math.h"#include "UT_Assert.h"#include "UT_VectorTypes.h"#include "UT_Matrix2.h"Go to the source code of this file.
Classes | |
| class | UT_Vector2T< T > |
| 2D Vector class. More... | |
Functions | |
| template<typename T > | |
| UT_Vector2T< T > | operator+ (const UT_Vector2T< T > &v1, const UT_Vector2T< T > &v2) |
| template<typename T > | |
| UT_Vector2T< T > | operator- (const UT_Vector2T< T > &v1, const UT_Vector2T< T > &v2) |
| template<typename T > | |
| bool | operator< (const UT_Vector2T< T > &v1, const UT_Vector2T< T > &v2) |
| template<typename T > | |
| bool | operator<= (const UT_Vector2T< T > &v1, const UT_Vector2T< T > &v2) |
| template<typename T > | |
| bool | operator> (const UT_Vector2T< T > &v1, const UT_Vector2T< T > &v2) |
| template<typename T > | |
| bool | operator>= (const UT_Vector2T< T > &v1, const UT_Vector2T< T > &v2) |
| template<typename T , typename S > | |
| UT_Vector2T< T > | operator+ (const UT_Vector2T< T > &v, S scalar) |
| template<typename T , typename S > | |
| UT_Vector2T< T > | operator- (const UT_Vector2T< T > &v, S scalar) |
| template<typename T , typename S > | |
| UT_Vector2T< T > | operator* (const UT_Vector2T< T > &v, S scalar) |
| template<typename T , typename S > | |
| UT_Vector2T< T > | operator/ (const UT_Vector2T< T > &v, S scalar) |
| template<typename T , typename S > | |
| UT_Vector2T< T > | operator+ (S scalar, const UT_Vector2T< T > &v) |
| template<typename T , typename S > | |
| UT_Vector2T< T > | operator- (S scalar, const UT_Vector2T< T > &v) |
| template<typename T , typename S > | |
| UT_Vector2T< T > | operator* (S scalar, const UT_Vector2T< T > &v) |
| template<typename T , typename S > | |
| UT_Vector2T< T > | operator/ (S scalar, const UT_Vector2T< T > &v) |
| template<typename T , typename S > | |
| UT_Vector2T< T > | operator* (const UT_Vector2T< T > &v, const UT_Matrix2T< S > &mat) |
| template<typename T > | |
| T | dot (const UT_Vector2T< T > &v1, const UT_Vector2T< T > &v2) |
| The dot product. | |
| template<typename T > | |
| T | cross (const UT_Vector2T< T > &v1, const UT_Vector2T< T > &v2) |
| Cross product, which for 2d vectors results in a fpreal. | |
| template<typename T > | |
| UT_Vector2T< T > | project (const UT_Vector2T< T > &u, const UT_Vector2T< T > &v) |
| The orthogonal projection of a vector u onto a vector v. | |
| template<typename T > | |
| T | distance2d (const UT_Vector2T< T > &v1, const UT_Vector2T< T > &v2) |
| template<typename T > | |
| UT_Vector2T< T > | operator* (const UT_Vector2T< T > &v1, const UT_Vector2T< T > &v2) |
| template<typename T > | |
| UT_Vector2T< T > | operator/ (const UT_Vector2T< T > &v1, const UT_Vector2T< T > &v2) |
| template<typename T , typename S > | |
| UT_Vector2T< T > | rowVecMult (const UT_Vector2T< T > &v, const UT_Matrix2T< S > &m) |
| template<typename T , typename S > | |
| UT_Vector2T< T > | colVecMult (const UT_Matrix2T< S > &m, const UT_Vector2T< T > &v) |
| UT_Vector2T< T > colVecMult | ( | const UT_Matrix2T< S > & | m, | |
| const UT_Vector2T< T > & | v | |||
| ) | [inline] |
Multiplication of a row or column vector by a matrix (ie. right vs. left multiplication respectively). The operator*() declared above is an alias for rowVecMult().
Definition at line 489 of file UT_Vector2.h.
| T cross | ( | const UT_Vector2T< T > & | v1, | |
| const UT_Vector2T< T > & | v2 | |||
| ) | [inline] |
Cross product, which for 2d vectors results in a fpreal.
Definition at line 473 of file UT_Vector2.h.
| T distance2d | ( | const UT_Vector2T< T > & | v1, | |
| const UT_Vector2T< T > & | v2 | |||
| ) | [inline] |
Definition at line 500 of file UT_Vector2.h.
| T dot | ( | const UT_Vector2T< T > & | v1, | |
| const UT_Vector2T< T > & | v2 | |||
| ) | [inline] |
| UT_Vector2T<T> operator* | ( | const UT_Vector2T< T > & | v1, | |
| const UT_Vector2T< T > & | v2 | |||
| ) | [inline] |
Definition at line 398 of file UT_Vector2.h.
| UT_Vector2T< T > operator* | ( | const UT_Vector2T< T > & | v, | |
| const UT_Matrix2T< S > & | mat | |||
| ) | [inline] |
Definition at line 495 of file UT_Vector2.h.
| UT_Vector2T< T > operator* | ( | S | scalar, | |
| const UT_Vector2T< T > & | v | |||
| ) | [inline] |
Definition at line 453 of file UT_Vector2.h.
| UT_Vector2T< T > operator* | ( | const UT_Vector2T< T > & | v, | |
| S | scalar | |||
| ) | [inline] |
Definition at line 448 of file UT_Vector2.h.
| UT_Vector2T< T > operator+ | ( | S | scalar, | |
| const UT_Vector2T< T > & | v | |||
| ) | [inline] |
Definition at line 433 of file UT_Vector2.h.
| UT_Vector2T< T > operator+ | ( | const UT_Vector2T< T > & | v, | |
| S | scalar | |||
| ) | [inline] |
Definition at line 428 of file UT_Vector2.h.
| UT_Vector2T< T > operator+ | ( | const UT_Vector2T< T > & | v1, | |
| const UT_Vector2T< T > & | v2 | |||
| ) | [inline] |
Definition at line 388 of file UT_Vector2.h.
| UT_Vector2T< T > operator- | ( | S | scalar, | |
| const UT_Vector2T< T > & | v | |||
| ) | [inline] |
Definition at line 443 of file UT_Vector2.h.
| UT_Vector2T< T > operator- | ( | const UT_Vector2T< T > & | v, | |
| S | scalar | |||
| ) | [inline] |
Definition at line 438 of file UT_Vector2.h.
| UT_Vector2T< T > operator- | ( | const UT_Vector2T< T > & | v1, | |
| const UT_Vector2T< T > & | v2 | |||
| ) | [inline] |
Definition at line 393 of file UT_Vector2.h.
| UT_Vector2T<T> operator/ | ( | const UT_Vector2T< T > & | v1, | |
| const UT_Vector2T< T > & | v2 | |||
| ) | [inline] |
Definition at line 403 of file UT_Vector2.h.
| UT_Vector2T< T > operator/ | ( | S | scalar, | |
| const UT_Vector2T< T > & | v | |||
| ) | [inline] |
Definition at line 463 of file UT_Vector2.h.
| UT_Vector2T< T > operator/ | ( | const UT_Vector2T< T > & | v, | |
| S | scalar | |||
| ) | [inline] |
Definition at line 458 of file UT_Vector2.h.
| bool operator< | ( | const UT_Vector2T< T > & | v1, | |
| const UT_Vector2T< T > & | v2 | |||
| ) | [inline] |
Definition at line 408 of file UT_Vector2.h.
| bool operator<= | ( | const UT_Vector2T< T > & | v1, | |
| const UT_Vector2T< T > & | v2 | |||
| ) | [inline] |
Definition at line 413 of file UT_Vector2.h.
| bool operator> | ( | const UT_Vector2T< T > & | v1, | |
| const UT_Vector2T< T > & | v2 | |||
| ) | [inline] |
Definition at line 418 of file UT_Vector2.h.
| bool operator>= | ( | const UT_Vector2T< T > & | v1, | |
| const UT_Vector2T< T > & | v2 | |||
| ) | [inline] |
Definition at line 423 of file UT_Vector2.h.
| UT_Vector2T< T > project | ( | const UT_Vector2T< T > & | u, | |
| const UT_Vector2T< T > & | v | |||
| ) | [inline] |
The orthogonal projection of a vector u onto a vector v.
Definition at line 478 of file UT_Vector2.h.
| UT_Vector2T< T > rowVecMult | ( | const UT_Vector2T< T > & | v, | |
| const UT_Matrix2T< S > & | m | |||
| ) | [inline] |
Multiplication of a row or column vector by a matrix (ie. right vs. left multiplication respectively). The operator*() declared above is an alias for rowVecMult().
Definition at line 483 of file UT_Vector2.h.
1.5.9