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

3x3 vector with decimaling point components More...

#include <attitude-utils.hpp>

Public Member Functions

decimal At (int i, int j) const
 Access the i,j-th element of the matrix. More...
 
Mat3 operator+ (const Mat3 &) const
 Normal matrix addition. More...
 
Mat3 operator* (const Mat3 &) const
 Naive matrix multiplication. More...
 
Vec3 operator* (const Vec3 &) const
 Matrix-Vector multiplication. More...
 
Mat3 operator* (const decimal &) const
 Matrix-Scalar multiplication. More...
 
Mat3 Transpose () const
 Transpose of a matrix. More...
 
Vec3 Column (int) const
 Get the column at index j. More...
 
Vec3 Row (int) const
 Get the row at index i. More...
 
decimal Trace () const
 Trace of a matrix. More...
 
decimal Det () const
 Determinant of a matrix. More...
 
Mat3 Inverse () const
 Inverse of a matrix. More...
 

Public Attributes

decimal x [9]
 

Detailed Description

3x3 vector with decimaling point components

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

Member Function Documentation

◆ At()

decimal lost::Mat3::At ( int  i,
int  j 
) const

Access the i,j-th element of the matrix.

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

Here is the caller graph for this function:

◆ Column()

Vec3 lost::Mat3::Column ( int  j) const

Get the column at index j.

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

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

◆ Det()

decimal lost::Mat3::Det ( ) const

Determinant of a matrix.

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

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

◆ Inverse()

Mat3 lost::Mat3::Inverse ( ) const

Inverse of a matrix.

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

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

◆ operator*() [1/3]

Mat3 lost::Mat3::operator* ( const decimal s) const

Matrix-Scalar multiplication.

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

Here is the call graph for this function:

◆ operator*() [2/3]

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

Naive matrix multiplication.

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

◆ operator*() [3/3]

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

Matrix-Vector multiplication.

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

Here is the call graph for this function:

◆ operator+()

Mat3 lost::Mat3::operator+ ( const Mat3 other) const

Normal matrix addition.

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

Here is the call graph for this function:

◆ Row()

Vec3 lost::Mat3::Row ( int  i) const

Get the row at index i.

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

Here is the call graph for this function:

◆ Trace()

decimal lost::Mat3::Trace ( ) const

Trace of a matrix.

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

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

◆ Transpose()

Mat3 lost::Mat3::Transpose ( ) const

Transpose of a matrix.

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

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

Member Data Documentation

◆ x

decimal lost::Mat3::x[9]

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


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