OrbitEngine::Math::Mat4 struct

4x4 matrix

Public static functions

static auto Identity() -> Mat4
static auto Orthographic(float left, float right, float bottom, float top, float _near, float _far) -> Mat4
static auto Perspective(float fov, float aspectRatio, float _near, float _far) -> Mat4
static auto LookAt(const Vec3f& eye, const Vec3f& target, const Vec3f& up) -> Mat4
static auto Translation(const Vec3f& translation) -> Mat4
static auto Translation(const Vec2f& translation) -> Mat4
static auto Rotation(float angle, const Vec3f& axis) -> Mat4
static auto Scale(const Vec3f& scale) -> Mat4
static auto Transpose(const Mat4& matrix) -> Mat4
static auto Inverse(const Mat4& matrix) -> Mat4

Constructors, destructors, conversion operators

Mat4(float d = 1.0f)
Create a new matrix.

Public variables

float _11
float _12
float _13
float _14
float _21
float _22
float _23
float _24
float _31
float _32
float _33
float _34
float _41
float _42
float _43
float _44
float m
float data
union OrbitEngine::Math::Mat4::@0 @1

Function documentation

OrbitEngine::Math::Mat4::Mat4(float d = 1.0f)

Create a new matrix.

Parameters
in Value along the diagonal