#include "common.h"
Go to the source code of this file.
|
class CLASS_DECLSPEC | GEOM_FADE25D::Vector2 |
|
◆ crossProduct()
Vector2 GEOM_FADE25D::crossProduct |
( |
const Vector2 & |
vec0, |
|
|
const Vector2 & |
vec1 |
|
) |
| |
|
inline |
Computes the cross product of two vectors.
- Parameters
-
vec0 | The first vector. |
vec1 | The second vector. |
- Returns
- A new vector resulting from the cross product.
◆ operator*()
Vector2 GEOM_FADE25D::operator* |
( |
double |
d, |
|
|
const Vector2 & |
vec |
|
) |
| |
|
inline |
Multiplies a scalar by a vector.
- Parameters
-
d | The scalar value. |
vec | The vector to multiply. |
- Returns
- A new vector resulting from the multiplication.
◆ operator+()
Vector2 GEOM_FADE25D::operator+ |
( |
const Vector2 & |
vec0, |
|
|
const Vector2 & |
vec1 |
|
) |
| |
|
inline |
Adds two vectors.
- Parameters
-
vec0 | The first vector. |
vec1 | The second vector. |
- Returns
- A new vector resulting from the addition.
◆ operator-() [1/2]
Vector2 GEOM_FADE25D::operator- |
( |
const Vector2 & |
in | ) |
|
|
inline |
Returns a vector pointing in the opposite direction.
- Returns
- A new vector pointing in the opposite direction.
◆ operator-() [2/2]
Vector2 GEOM_FADE25D::operator- |
( |
const Vector2 & |
vec0, |
|
|
const Vector2 & |
vec1 |
|
) |
| |
|
inline |
Subtracts two vectors.
- Parameters
-
vec0 | The first vector. |
vec1 | The second vector. |
- Returns
- A new vector resulting from the subtraction.
◆ operator<<()
std::ostream& GEOM_FADE25D::operator<< |
( |
std::ostream & |
stream, |
|
|
const Vector2 & |
vec |
|
) |
| |
|
inline |
Prints a Vector2 to an output stream.
- Parameters
-
stream | The output stream. |
vec | The vector to print. |
- Returns
- The output stream.