A two dimensional vector with decimaling point components. More...
#include <attitude-utils.hpp>
Public Member Functions | |
| decimal | Magnitude () const |
| decimal | MagnitudeSq () const |
| The square of the magnitude. | |
| Vec2 | Normalize () const |
| decimal | operator* (const Vec2 &) const |
| Vec2 | operator* (const decimal &) const |
| Vector-Scalar multiplication. | |
| Vec2 | operator- (const Vec2 &) const |
| Usual vector subtraction. | |
| Vec2 | operator+ (const Vec2 &) const |
| Usual vector addition. | |
Public Attributes | |
| decimal | x |
| decimal | y |
Friends | |
| std::ostream & | operator<< (std::ostream &output, const Vec2 &vec) |
A two dimensional vector with decimaling point components.
Definition at line 16 of file attitude-utils.hpp.
| decimal lost::Vec2::Magnitude | ( | ) | const |
Definition at line 198 of file attitude-utils.cpp.
| decimal lost::Vec2::MagnitudeSq | ( | ) | const |
The square of the magnitude.
Definition at line 190 of file attitude-utils.cpp.
| Vec2 lost::Vec2::Normalize | ( | ) | const |
Vector-Scalar multiplication.
Definition at line 216 of file attitude-utils.cpp.
Usual vector addition.
Definition at line 226 of file attitude-utils.cpp.
Usual vector subtraction.
Definition at line 231 of file attitude-utils.cpp.
|
friend |
Definition at line 174 of file attitude-utils.cpp.
| decimal lost::Vec2::x |
Definition at line 17 of file attitude-utils.hpp.
| decimal lost::Vec2::y |
Definition at line 18 of file attitude-utils.hpp.