LOST
0.0.1
LOST: Open-source Star Tracker
|
Three 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. More... | |
Vec3 | Normalize () const |
Create a vector pointing in the same direction with magnitude 1. More... | |
decimal | operator* (const Vec3 &) const |
Dot product. More... | |
Vec3 | operator* (const decimal &) const |
Vector-Scalar multiplication. More... | |
Vec3 | operator* (const Mat3 &) const |
Vector-matrix multiplication, where the vector is transposed. More... | |
Vec3 | operator- (const Vec3 &) const |
Usual vector subtraction. More... | |
Vec3 | CrossProduct (const Vec3 &) const |
Usual vector cross product. More... | |
Mat3 | OuterProduct (const Vec3 &) const |
The outer product of two vectors. More... | |
Public Attributes | |
decimal | x |
decimal | y |
decimal | z |
Three dimensional vector with decimaling point components.
Definition at line 35 of file attitude-utils.hpp.
Usual vector cross product.
Definition at line 231 of file attitude-utils.cpp.
decimal lost::Vec3::Magnitude | ( | ) | const |
decimal lost::Vec3::MagnitudeSq | ( | ) | const |
The square of the magnitude.
Definition at line 175 of file attitude-utils.cpp.
Vec3 lost::Vec3::Normalize | ( | ) | const |
Create a vector pointing in the same direction with magnitude 1.
Definition at line 193 of file attitude-utils.cpp.
Vector-Scalar multiplication.
Definition at line 211 of file attitude-utils.cpp.
Vector-matrix multiplication, where the vector is transposed.
Definition at line 249 of file attitude-utils.cpp.
Dot product.
Definition at line 201 of file attitude-utils.cpp.
Usual vector subtraction.
Definition at line 226 of file attitude-utils.cpp.
The outer product of two vectors.
Definition at line 240 of file attitude-utils.cpp.
decimal lost::Vec3::x |
Definition at line 37 of file attitude-utils.hpp.
decimal lost::Vec3::y |
Definition at line 38 of file attitude-utils.hpp.
decimal lost::Vec3::z |
Definition at line 39 of file attitude-utils.hpp.