Three dimensional vector with decimaling point components. More...
#include <attitude-utils.hpp>
Public Member Functions | |
| Vec3 () | |
| Vec3 (decimal x, decimal y, decimal z) | |
| decimal | Magnitude () const |
| decimal | MagnitudeSq () const |
| The square of the magnitude. | |
| Vec3 | Normalize () const |
| Create a vector pointing in the same direction with magnitude 1. | |
| decimal | operator* (const Vec3 &) const |
| Dot product. | |
| Vec3 | operator* (const decimal &) const |
| Vector-Scalar multiplication. | |
| Vec3 | operator* (const Mat3 &) const |
| Vector-matrix multiplication, where the vector is transposed. | |
| Vec3 | operator- (const Vec3 &) const |
| Usual vector subtraction. | |
| Vec3 | operator+ (const Vec3 &) const |
| Vec3 | CrossProduct (const Vec3 &) const |
| Usual vector cross product. | |
| Mat3 | OuterProduct (const Vec3 &) const |
| The outer product of two vectors. | |
Public Attributes | |
| decimal | x |
| decimal | y |
| decimal | z |
Friends | |
| std::ostream & | operator<< (std::ostream &output, const Vec3 &vec) |
Three dimensional vector with decimaling point components.
Definition at line 36 of file attitude-utils.hpp.
|
inline |
Definition at line 43 of file attitude-utils.hpp.
Usual vector cross product.
Definition at line 245 of file attitude-utils.cpp.


| decimal lost::Vec3::Magnitude | ( | ) | const |
| decimal lost::Vec3::MagnitudeSq | ( | ) | const |
The square of the magnitude.
Definition at line 185 of file attitude-utils.cpp.

| Vec3 lost::Vec3::Normalize | ( | ) | const |
Create a vector pointing in the same direction with magnitude 1.
Definition at line 203 of file attitude-utils.cpp.


Vector-Scalar multiplication.
Definition at line 221 of file attitude-utils.cpp.

Vector-matrix multiplication, where the vector is transposed.
Definition at line 263 of file attitude-utils.cpp.

Dot product.
Definition at line 211 of file attitude-utils.cpp.

Usual vector subtraction.
Definition at line 236 of file attitude-utils.cpp.

The outer product of two vectors.
Definition at line 254 of file attitude-utils.cpp.


|
friend |
Definition at line 179 of file attitude-utils.cpp.
| decimal lost::Vec3::x |
Definition at line 38 of file attitude-utils.hpp.
| decimal lost::Vec3::y |
Definition at line 39 of file attitude-utils.hpp.
| decimal lost::Vec3::z |
Definition at line 40 of file attitude-utils.hpp.