#include <Vector4D.h>
Public Member Functions | |
double | Length () const |
void | Normalize () |
bool | operator!= (const Vector4D &v) const |
template<typename S > | |
Vector4D | operator* (S s) const |
template<typename S > | |
Vector4D & | operator*= (S s) |
Vector4D & | operator*= (const Vector4D &v) |
template<typename S > | |
Vector4D | operator+ (S s) const |
Vector4D | operator+ (const Vector4D &v) const |
template<typename S > | |
Vector4D & | operator+= (S s) |
Vector4D & | operator+= (const Vector4D &v) |
Vector4D | operator- () const |
template<typename S > | |
Vector4D | operator- (S s) const |
Vector4D | operator- (const Vector4D &v) const |
template<typename S > | |
Vector4D & | operator-= (S s) |
Vector4D & | operator-= (const Vector4D &v) |
Vector4D | operator/ (const Vector4D &v) const |
template<typename S > | |
Vector4D | operator/ (S s) const |
Vector4D & | operator/= (const Vector4D &v) |
template<typename S > | |
Vector4D & | operator/= (S s) |
bool | operator< (const Vector4D &v) const |
bool | operator<= (const Vector4D &v) const |
Vector4D & | operator= (T s) |
Vector4D & | operator= (const Vector4D &v) |
bool | operator== (const Vector4D &v) const |
bool | operator> (const Vector4D &v) const |
bool | operator>= (const Vector4D &v) const |
Vector4D () | |
Vector4D (T x) | |
Vector4D (T x, T y, T z, T t) | |
Vector4D (const Vector4D &) | |
Static Public Member Functions | |
static double | DotProduct (const Vector4D &v1, const Vector4D &v2) |
Public Attributes | |
T | _t |
The t component. | |
T | _x |
The x component. | |
T | _y |
The y component. | |
T | _z |
The z component. | |
Represents a 4D vector
|
inline |
Constructor.
Definition at line 158 of file Vector4D.h.
|
inline |
Constructor.
Definition at line 167 of file Vector4D.h.
|
inline |
Constructor.
Definition at line 176 of file Vector4D.h.
|
inline |
Copy Constructor.
Definition at line 185 of file Vector4D.h.
|
inlinestatic |
Takes the dot-product of two vectors.
Definition at line 429 of file Vector4D.h.
|
inline |
Returns the length of the vector.
Definition at line 423 of file Vector4D.h.
|
inline |
Normalizes the vector.
Definition at line 411 of file Vector4D.h.
|
inline |
Operator for testing non-equality of two vector.
Definition at line 358 of file Vector4D.h.
Operator for multiplying by a scalar.
Operator for multiplying by a scalar.
|
inline |
Operator for multiplying by a vector.
Definition at line 290 of file Vector4D.h.
Operator for adding a scalar to a vector.
|
inline |
Operator for adding two vectors.
Definition at line 240 of file Vector4D.h.
Operator for adding a scalar.
|
inline |
Operator for adding a vector.
Definition at line 319 of file Vector4D.h.
|
inline |
Unary negation operator.
Definition at line 313 of file Vector4D.h.
Operator for subtracting a scalar to a vector.
|
inline |
Operator for subtraction.
Definition at line 266 of file Vector4D.h.
Operator for subtracting a scalar.
|
inline |
Operator for subtracting a vector.
Definition at line 341 of file Vector4D.h.
Vector4D mirtk::Vector4D< T >::operator/ | ( | const Vector4D< T > & | v | ) | const |
Operator for dividing one vector by another.
Operator for dividing a vector by a scalar.
Vector4D& mirtk::Vector4D< T >::operator/= | ( | const Vector4D< T > & | v | ) |
Operator for dividing one vector by another.
Operator for dividing a vector by a scalar.
|
inline |
Operator for comparing sizes of vectors.
Definition at line 364 of file Vector4D.h.
|
inline |
Operator for comparing sizes of vectors.
Definition at line 382 of file Vector4D.h.
|
inline |
Assignment operator
Definition at line 194 of file Vector4D.h.
|
inline |
Assignment operator
Definition at line 204 of file Vector4D.h.
|
inline |
Operator for testing equality of two vectors.
Definition at line 352 of file Vector4D.h.
|
inline |
Operator for comparing sizes of vectors.
Definition at line 373 of file Vector4D.h.
|
inline |
Operator for comparing sizes of vectors.
Definition at line 388 of file Vector4D.h.