◆ Vector2d() [1/3]
TBTK::Vector2d::Vector2d |
( |
| ) |
|
◆ Vector2d() [2/3]
TBTK::Vector2d::Vector2d |
( |
std::initializer_list< double > |
components | ) |
|
◆ Vector2d() [3/3]
TBTK::Vector2d::Vector2d |
( |
const std::vector< double > & |
components | ) |
|
◆ dotProduct()
double TBTK::Vector2d::dotProduct |
( |
const Vector2d & |
lhs, |
|
|
const Vector2d & |
rhs |
|
) |
| |
|
inlinestatic |
◆ getStdVector()
const std::vector< double > TBTK::Vector2d::getStdVector |
( |
| ) |
const |
|
inline |
Get a std::vector<double> representation of the vector.
◆ norm()
double TBTK::Vector2d::norm |
( |
| ) |
const |
|
inline |
◆ operator*()
const Vector2d TBTK::Vector2d::operator* |
( |
double |
rhs | ) |
const |
|
inline |
Multiplication operator (vector*scalar).
◆ operator+()
◆ operator-() [1/2]
const Vector2d TBTK::Vector2d::operator- |
( |
| ) |
const |
|
inline |
◆ operator-() [2/2]
◆ operator/()
const Vector2d TBTK::Vector2d::operator/ |
( |
double |
rhs | ) |
const |
|
inline |
◆ parallel()
Returns a vector that is the component of the vector that is parallel to the argument.
◆ perpendicular()
Returns a vector that is the component of the vector that is perpendicular to the argument.
◆ unit()
const Vector2d TBTK::Vector2d::unit |
( |
| ) |
const |
|
inline |
Returns a unit vector pointing in the same direction as the original vector.
◆ operator*
Multiplication operator (scalar*vector).
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
stream, |
|
|
const Vector2d & |
v |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: