A 3x3 matrix class.
More...
#include <Matrix3x3.h>
|
|
using | row_t = std::array<double, 3> |
| |
|
using | base_t = std::array<row_t, 3> |
| |
|
using | Unique = std::unique_ptr<Matrix3x3> |
| | Unique pointer.
|
| |
|
using | Shared = std::shared_ptr<Matrix3x3> |
| | Shared pointer.
|
| |
|
using | Option = std::optional<Matrix3x3> |
| | Optional.
|
| |
|
| | Matrix3x3 () |
| |
| | Matrix3x3 (double a1, double b1, double c1, double a2, double b2, double c2, double a3, double b3, double c3) |
| |
| bool | operator== (const Matrix3x3 &ref) const |
| |
| bool | operator!= (const Matrix3x3 &ref) const |
| |
| Matrix3x3 | operator* (const Matrix3x3 &ref) const |
| |
| Matrix3x3 & | operator*= (const Matrix3x3 &ref) |
| |
| const row_t & | operator[] (unsigned short index) const |
| |
| row_t & | operator[] (unsigned short index) |
| |
| const double & | operator() (unsigned short row, unsigned short col) const |
| |
| double & | operator() (unsigned short row, unsigned short col) |
| |
| Matrix3x3 | getInverse () const |
| |
| double | getDeterminant () const |
| |
◆ Matrix3x3() [1/2]
◆ Matrix3x3() [2/2]
| Matrix3x3::Matrix3x3 |
( |
double | a1, |
|
|
double | b1, |
|
|
double | c1, |
|
|
double | a2, |
|
|
double | b2, |
|
|
double | c2, |
|
|
double | a3, |
|
|
double | b3, |
|
|
double | c3 ) |
◆ createIdentity()
Create an identity matrix
- Returns
- The requested identity matrix
◆ createScale()
| Matrix3x3 Matrix3x3::createScale |
( |
double | x, |
|
|
double | y, |
|
|
double | z ) |
|
static |
Create a scaling matrix
- Parameters
-
| x | The scale in the x axis |
| y | The scale in the y axis |
| z | The scale in the z axis |
- Returns
- The requested scaling matrix
◆ createTranslate()
| Matrix3x3 Matrix3x3::createTranslate |
( |
double | x, |
|
|
double | y, |
|
|
double | z ) |
|
static |
Create a translation matrix
- Parameters
-
| x | The offset in the x axis |
| y | The offset in the y axis |
| z | The offset in the z axis |
- Returns
- The requested transformation matrix
◆ createXRotate()
| Matrix3x3 Matrix3x3::createXRotate |
( |
double | angle | ) |
|
|
static |
Create a rotation matrix about the x axis
- Parameters
-
- Returns
- The requested rotation matrix
◆ createYRotate()
| Matrix3x3 Matrix3x3::createYRotate |
( |
double | angle | ) |
|
|
static |
Create a rotation matrix about the y axis
- Parameters
-
- Returns
- The requested rotation matrix
◆ createZRotate()
| Matrix3x3 Matrix3x3::createZRotate |
( |
double | angle | ) |
|
|
static |
Create a rotation matrix about the z axis
- Parameters
-
- Returns
- The requested rotation matrix
◆ getDeterminant()
| double Matrix3x3::getDeterminant |
( |
| ) |
const |
Get the determinant
- Returns
- The matrix determinant
◆ getInverse()
Get the inverse matrix (or identity if none exists) return: An inverse matrix
◆ operator!=()
| bool Matrix3x3::operator!= |
( |
const Matrix3x3 & | ref | ) |
const |
Inequality operator
- Parameters
-
- Returns
- True if the objects are not identical
◆ operator()() [1/2]
| double & active::geometry::Matrix3x3::operator() |
( |
unsigned short | row, |
|
|
unsigned short | col ) |
|
inline |
Subscript operator
- Parameters
-
| row | The required row |
| col | The required column |
- Returns
- The value at the specified position
◆ operator()() [2/2]
| const double & active::geometry::Matrix3x3::operator() |
( |
unsigned short | row, |
|
|
unsigned short | col ) const |
|
inline |
Subscript operator
- Parameters
-
| row | The required row |
| col | The required column |
- Returns
- The value at the specified position
◆ operator*()
Multiplication operator
- Parameters
-
| ref | The matrix to multiply this by |
- Returns
- The result
◆ operator*=()
Multiplication with assignment operator
- Parameters
-
| ref | The matrix to multiply this by |
- Returns
- A reference to this
◆ operator==()
| bool Matrix3x3::operator== |
( |
const Matrix3x3 & | ref | ) |
const |
Equality operator
- Parameters
-
- Returns
- True if the objects are identical
◆ operator[]() [1/2]
| row_t & active::geometry::Matrix3x3::operator[] |
( |
unsigned short | index | ) |
|
|
inline |
Row subscript operator
- Parameters
-
- Returns
- The matrix row
◆ operator[]() [2/2]
| const row_t & active::geometry::Matrix3x3::operator[] |
( |
unsigned short | index | ) |
const |
|
inline |
Row subscript operator
- Parameters
-
- Returns
- The matrix row
The documentation for this class was generated from the following files:
- /Users/rwessel/Documents/Development/ActiveLib/Active/Geometry/Matrix3x3.h
- /Users/rwessel/Documents/Development/ActiveLib/Active/Geometry/Matrix3x3.cpp