util/Vector.h File Reference
Go to the source code of this file.
|
Classes |
| class | Vector< N, T > |
| | A vector. More...
|
Typedefs |
| typedef Vector< 3, double > | Vector3d |
Functions |
| template<size_t N, typename T > |
| Vector< N, T > const | operator+ (Vector< N, T > const &a, Vector< N, T > const &b) |
| template<size_t N, typename T > |
| Vector< N, T > const | operator- (Vector< N, T > const &a, Vector< N, T > const &b) |
| template<size_t N, typename T > |
| Vector< N, T > const | operator* (Vector< N, T > const &a, T s) |
| template<size_t N, typename T > |
| Vector< N, T > const | operator* (T s, Vector< N, T > const &a) |
| template<size_t N, typename T > |
| Vector< N, T > const | operator/ (Vector< N, T > const &a, T s) |
| template<size_t N, typename T > |
| bool | operator== (Vector< N, T > const &a, Vector< N, T > const &b) |
| template<size_t N, typename T > |
| bool | operator!= (Vector< N, T > const &a, Vector< N, T > const &b) |
Typedef Documentation
Function Documentation
template<size_t N, typename T >
| bool operator!= |
( |
Vector< N, T > const & |
a, |
|
|
Vector< N, T > const & |
b | |
|
) |
| | [inline] |
- Parameters:
-
- Returns:
- false if a equals b, true otherwise
Definition at line 296 of file Vector.h.
template<size_t N, typename T >
| Vector<N,T> const operator* |
( |
T |
s, |
|
|
Vector< N, T > const & |
a | |
|
) |
| | [inline] |
- Parameters:
-
| s | Factor 2 (Scalar) |
| a | Factor 1 (Vector) |
- Returns:
- Scalar product of a * b
Definition at line 255 of file Vector.h.
template<size_t N, typename T >
| Vector<N,T> const operator* |
( |
Vector< N, T > const & |
a, |
|
|
T |
s | |
|
) |
| | [inline] |
- Parameters:
-
| a | Factor 1 (Vector) |
| s | Factor 2 (Scalar) |
- Returns:
- Scalar product of a * b
Definition at line 242 of file Vector.h.
template<size_t N, typename T >
| Vector<N,T> const operator+ |
( |
Vector< N, T > const & |
a, |
|
|
Vector< N, T > const & |
b | |
|
) |
| | [inline] |
- Parameters:
-
- Returns:
- a + b
Definition at line 216 of file Vector.h.
template<size_t N, typename T >
| Vector<N,T> const operator- |
( |
Vector< N, T > const & |
a, |
|
|
Vector< N, T > const & |
b | |
|
) |
| | [inline] |
- Parameters:
-
| a | Subtrahend 1 |
| b | Subtrahend 2 |
- Returns:
- a - b
Definition at line 229 of file Vector.h.
template<size_t N, typename T >
| Vector<N,T> const operator/ |
( |
Vector< N, T > const & |
a, |
|
|
T |
s | |
|
) |
| | [inline] |
- Parameters:
-
| a | Factor 1 (Vector) |
| s | Factor 2 (Scalar) |
- Returns:
- Scalar product of a * (1/b)
Definition at line 268 of file Vector.h.
template<size_t N, typename T >
| bool operator== |
( |
Vector< N, T > const & |
a, |
|
|
Vector< N, T > const & |
b | |
|
) |
| | [inline] |
- Parameters:
-
- Returns:
- true if a equals b, false otherwise
Definition at line 281 of file Vector.h.