LOST  0.0.1
LOST: Open-source Star Tracker
lost::Vec3 Class Reference

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
 

Detailed Description

Three dimensional vector with decimaling point components.

Definition at line 35 of file attitude-utils.hpp.

Member Function Documentation

◆ CrossProduct()

Vec3 lost::Vec3::CrossProduct ( const Vec3 other) const

Usual vector cross product.

Definition at line 231 of file attitude-utils.cpp.

Here is the caller graph for this function:

◆ Magnitude()

decimal lost::Vec3::Magnitude ( ) const

Definition at line 184 of file attitude-utils.cpp.

Here is the caller graph for this function:

◆ MagnitudeSq()

decimal lost::Vec3::MagnitudeSq ( ) const

The square of the magnitude.

Definition at line 175 of file attitude-utils.cpp.

Here is the caller graph for this function:

◆ Normalize()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator*() [1/3]

Vec3 lost::Vec3::operator* ( const decimal other) const

Vector-Scalar multiplication.

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

◆ operator*() [2/3]

Vec3 lost::Vec3::operator* ( const Mat3 other) const

Vector-matrix multiplication, where the vector is transposed.

Definition at line 249 of file attitude-utils.cpp.

Here is the call graph for this function:

◆ operator*() [3/3]

decimal lost::Vec3::operator* ( const Vec3 other) const

Dot product.

Definition at line 201 of file attitude-utils.cpp.

◆ operator-()

Vec3 lost::Vec3::operator- ( const Vec3 other) const

Usual vector subtraction.

Definition at line 226 of file attitude-utils.cpp.

◆ OuterProduct()

Mat3 lost::Vec3::OuterProduct ( const Vec3 other) const

The outer product of two vectors.

Definition at line 240 of file attitude-utils.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ x

decimal lost::Vec3::x

Definition at line 37 of file attitude-utils.hpp.

◆ y

decimal lost::Vec3::y

Definition at line 38 of file attitude-utils.hpp.

◆ z

decimal lost::Vec3::z

Definition at line 39 of file attitude-utils.hpp.


The documentation for this class was generated from the following files: