A 4x4 Matrix structure stored in Column-Major order (OpenGL Standard).
More...
#include <src/core/Matrix.h>
|
| constexpr | Mat4 () noexcept |
| | Default constructor initializes to Identity Matrix.
|
| |
| Mat4 | operator* (const Mat4 &other) const |
| | Matrix Multiplication.
|
| |
|
| static Mat4 | Identity () |
| |
| static Mat4 | Zero () |
| |
| static Mat4 | Perspective (float fov, float aspect, float nearplane, float farplane) |
| | Creates a Perspective Projection Matrix (FOV Y).
|
| |
| static Mat4 | LookAt (const Vec3 &eye, const Vec3 &tgt, const Vec3 &up) |
| | Creates a View Matrix using Eye, Target, and Up vectors.
|
| |
| static Mat4 | Orthographic (float left, float right, float bottom, float top, float nearplane, float farplane) |
| |
| static Mat4 | Translation (const Vec3 &translation) |
| |
| static Mat4 | Scale (float scaleX, float scaleY, float scaleZ) |
| |
A 4x4 Matrix structure stored in Column-Major order (OpenGL Standard).
Index Layout: 0 4 8 12 1 5 9 13 2 6 10 14 3 7 11 15
◆ Mat4()
| constexpr Core::Mat4::Mat4 |
( |
| ) |
|
|
inlineconstexprnoexcept |
Default constructor initializes to Identity Matrix.
◆ Identity()
| static Mat4 Core::Mat4::Identity |
( |
| ) |
|
|
inlinestatic |
◆ LookAt()
| static Mat4 Core::Mat4::LookAt |
( |
const Vec3 & |
eye, |
|
|
const Vec3 & |
tgt, |
|
|
const Vec3 & |
up |
|
) |
| |
|
inlinestatic |
Creates a View Matrix using Eye, Target, and Up vectors.
◆ operator*()
| Mat4 Core::Mat4::operator* |
( |
const Mat4 & |
other | ) |
const |
|
inline |
Matrix Multiplication.
- Returns
- New Matrix result = (*this) * other
◆ Orthographic()
| static Mat4 Core::Mat4::Orthographic |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
bottom, |
|
|
float |
top, |
|
|
float |
nearplane, |
|
|
float |
farplane |
|
) |
| |
|
inlinestatic |
◆ Perspective()
| static Mat4 Core::Mat4::Perspective |
( |
float |
fov, |
|
|
float |
aspect, |
|
|
float |
nearplane, |
|
|
float |
farplane |
|
) |
| |
|
inlinestatic |
Creates a Perspective Projection Matrix (FOV Y).
- Parameters
-
| fov | Field of View in degrees. |
| aspect | Aspect Ratio (Width / Height). |
| nearplane | Distance to near clipping plane. |
| farplane | Distance to far clipping plane. |
◆ Scale()
| static Mat4 Core::Mat4::Scale |
( |
float |
scaleX, |
|
|
float |
scaleY, |
|
|
float |
scaleZ |
|
) |
| |
|
inlinestatic |
◆ Translation()
| static Mat4 Core::Mat4::Translation |
( |
const Vec3 & |
translation | ) |
|
|
inlinestatic |
◆ Zero()
| static Mat4 Core::Mat4::Zero |
( |
| ) |
|
|
inlinestatic |
◆ m_fElements
| float Core::Mat4::m_fElements[16] |
The documentation for this struct was generated from the following file: