A 4x4 matrix class.
More...
#include <Matrix4x4.h>
|
|
using | row_t = std::array<double, 4> |
| |
|
using | base_t = std::array<row_t, 4> |
| |
|
using | Unique = std::unique_ptr<Matrix4x4> |
| | Unique pointer.
|
| |
|
using | Shared = std::shared_ptr<Matrix4x4> |
| | Shared pointer.
|
| |
|
using | Option = std::optional<Matrix4x4> |
| | Optional.
|
| |
|
| | Matrix4x4 () |
| |
| | Matrix4x4 (double a1, double b1, double c1, double d1, double a2, double b2, double c2, double d2, double a3, double b3, double c3, double d3, double a4, double b4, double c4, double d4) |
| |
| Matrix4x4 & | operator= (const Matrix4x4 &source) |
| |
| bool | operator== (const Matrix4x4 &ref) const |
| |
| bool | operator!= (const Matrix4x4 &ref) const |
| |
| Matrix4x4 | operator* (const Matrix4x4 &ref) const |
| |
| Matrix4x4 & | operator*= (const Matrix4x4 &ref) |
| |
| row_t | operator[] (unsigned short index) |
| |
| double & | operator() (unsigned short row, unsigned short col) |
| |
| const double & | operator() (unsigned short row, unsigned short col) const |
| |
| Matrix4x4 | getInverse () const |
| |
| double | getDeterminant () const |
| |
◆ Matrix4x4() [1/2]
◆ Matrix4x4() [2/2]
| Matrix4x4::Matrix4x4 |
( |
double | a1, |
|
|
double | b1, |
|
|
double | c1, |
|
|
double | d1, |
|
|
double | a2, |
|
|
double | b2, |
|
|
double | c2, |
|
|
double | d2, |
|
|
double | a3, |
|
|
double | b3, |
|
|
double | c3, |
|
|
double | d3, |
|
|
double | a4, |
|
|
double | b4, |
|
|
double | c4, |
|
|
double | d4 ) |
◆ createIdentity()
Create an identity matrix
- Returns
- The requested identity matrix
◆ createScale()
| Matrix4x4 Matrix4x4::createScale |
( |
const double & | x, |
|
|
const double & | y, |
|
|
const 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()
| Matrix4x4 Matrix4x4::createTranslate |
( |
const double & | x, |
|
|
const double & | y, |
|
|
const 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()
| Matrix4x4 Matrix4x4::createXRotate |
( |
const double & | angle | ) |
|
|
static |
Create a rotation matrix about the x axis
- Parameters
-
- Returns
- The requested rotation matrix
◆ createYRotate()
| Matrix4x4 Matrix4x4::createYRotate |
( |
const double & | angle | ) |
|
|
static |
Create a rotation matrix about the y axis
- Parameters
-
- Returns
- The requested rotation matrix
◆ createZRotate()
| Matrix4x4 Matrix4x4::createZRotate |
( |
const double & | angle | ) |
|
|
static |
Create a rotation matrix about the z axis
- Parameters
-
- Returns
- The requested rotation matrix
◆ getDeterminant()
| double Matrix4x4::getDeterminant |
( |
| ) |
const |
Get the determinant
- Returns
- The matrix determinant
◆ getInverse()
Get the inverse matrix (or identity if none exists)
- Returns
- An inverse matrix
◆ getSubmatrix()
| Matrix3x3 Matrix4x4::getSubmatrix |
( |
unsigned short | row, |
|
|
unsigned short | col ) const |
|
protected |
Get the requested submatrix
- Parameters
-
| row | Row position |
| col | Column position |
- Returns
- The requested submatrix
◆ operator!=()
| bool Matrix4x4::operator!= |
( |
const Matrix4x4 & | ref | ) |
const |
Inequality operator
- Parameters
-
- Returns
- True if the objects are not identical
◆ operator()() [1/2]
| double & active::geometry::Matrix4x4::operator() |
( |
unsigned short | row, |
|
|
unsigned short | col ) |
|
inline |
Checked subscript method
- Parameters
-
| row | The required row |
| col | The required column |
- Returns
- The value at the specified position
◆ operator()() [2/2]
| const double & active::geometry::Matrix4x4::operator() |
( |
unsigned short | row, |
|
|
unsigned short | col ) const |
|
inline |
Checked subscript method
- 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=()
Assignment operator
- Parameters
-
- Returns
- A reference to this
◆ operator==()
| bool Matrix4x4::operator== |
( |
const Matrix4x4 & | ref | ) |
const |
Equality operator
- Parameters
-
- Returns
- True if the objects are identical
◆ operator[]()
| row_t active::geometry::Matrix4x4::operator[] |
( |
unsigned short | index | ) |
|
|
inline |
Unchecked subscript method
- Parameters
-
| index | An index into the matrix |
- Returns
- The value at the specified index
The documentation for this class was generated from the following files:
- /Users/rwessel/Documents/Development/ActiveLib/Active/Geometry/Matrix4x4.h
- /Users/rwessel/Documents/Development/ActiveLib/Active/Geometry/Matrix4x4.cpp