raylib-cpp
C++ object-oriented wrapper library for raylib.
Public Member Functions | Static Public Member Functions | List of all members
raylib::Matrix Class Reference

Public Member Functions

 Matrix (::Matrix mat)
 
 Matrix (float M0=0, float M1=0, float M2=0, float M3=0, float M4=0, float M5=0, float M6=0, float M7=0, float M8=0, float M9=0, float M10=0, float M11=0, float M12=0, float M13=0, float M14=0, float M15=0)
 
Matrix Add (::Matrix right)
 
float GetM0 ()
 
float GetM1 ()
 
float GetM10 ()
 
float GetM11 ()
 
float GetM12 ()
 
float GetM13 ()
 
float GetM14 ()
 
float GetM15 ()
 
float GetM2 ()
 
float GetM3 ()
 
float GetM4 ()
 
float GetM5 ()
 
float GetM6 ()
 
float GetM7 ()
 
float GetM8 ()
 
float GetM9 ()
 
Matrix Invert ()
 
Matrix Multiply (Matrix right)
 
Matrix Normalize ()
 
 operator float16 ()
 
Matrix operator* (const Matrix &matrix)
 
Matrix operator+ (const Matrix &matrix)
 
Matrix operator- (const Matrix &matrix)
 
Matrix & operator= (const ::Matrix &matrix)
 
Matrix & operator= (const Matrix &matrix)
 
bool operator== (const Matrix &other)
 
void set (::Matrix mat)
 
void SetM0 (float value)
 
void SetM1 (float value)
 
void SetM10 (float value)
 
void SetM11 (float value)
 
void SetM12 (float value)
 
void SetM13 (float value)
 
void SetM14 (float value)
 
void SetM15 (float value)
 
void SetM2 (float value)
 
void SetM3 (float value)
 
void SetM4 (float value)
 
void SetM5 (float value)
 
void SetM6 (float value)
 
void SetM7 (float value)
 
void SetM8 (float value)
 
void SetM9 (float value)
 
Matrix & SetModelview ()
 
Matrix & SetProjection ()
 
Matrix Subtract (::Matrix right)
 
float16 ToFloatV ()
 
float Trace ()
 
Matrix Transpose ()
 

Static Public Member Functions

static Matrix Frustum (double left, double right, double bottom, double top, double near, double far)
 
static Matrix GetModelview ()
 
static Matrix GetProjection ()
 
static Matrix Identity ()
 
static Matrix LookAt (Vector3 eye, Vector3 target, Vector3 up)
 
static Matrix Ortho (double left, double right, double bottom, double top, double near, double far)
 
static Matrix Perspective (double fovy, double aspect, double near, double far)
 
static Matrix Rotate (Vector3 axis, float angle)
 
static Matrix RotateX (float angle)
 
static Matrix RotateXYZ (Vector3 angle)
 
static Matrix RotateY (float angle)
 
static Matrix RotateZ (float angle)
 
static Matrix Scale (float x, float y, float z)
 
static Matrix Translate (float x, float y, float z)
 

Detailed Description

Definition at line 21 of file Matrix.hpp.

Constructor & Destructor Documentation

◆ Matrix() [1/2]

raylib::Matrix::Matrix ( ::Matrix  mat)
inline

Definition at line 23 of file Matrix.hpp.

References set().

◆ Matrix() [2/2]

raylib::Matrix::Matrix ( float  M0 = 0,
float  M1 = 0,
float  M2 = 0,
float  M3 = 0,
float  M4 = 0,
float  M5 = 0,
float  M6 = 0,
float  M7 = 0,
float  M8 = 0,
float  M9 = 0,
float  M10 = 0,
float  M11 = 0,
float  M12 = 0,
float  M13 = 0,
float  M14 = 0,
float  M15 = 0 
)
inline

Definition at line 27 of file Matrix.hpp.

Member Function Documentation

◆ Add()

Matrix raylib::Matrix::Add ( ::Matrix  right)
inline

Definition at line 145 of file Matrix.hpp.

◆ Frustum()

static Matrix raylib::Matrix::Frustum ( double  left,
double  right,
double  bottom,
double  top,
double  near,
double  far 
)
inlinestatic

Definition at line 185 of file Matrix.hpp.

◆ GetM0()

float raylib::Matrix::GetM0 ( )
inline

Definition at line 65 of file Matrix.hpp.

◆ GetM1()

float raylib::Matrix::GetM1 ( )
inline

Definition at line 66 of file Matrix.hpp.

◆ GetM10()

float raylib::Matrix::GetM10 ( )
inline

Definition at line 75 of file Matrix.hpp.

◆ GetM11()

float raylib::Matrix::GetM11 ( )
inline

Definition at line 76 of file Matrix.hpp.

◆ GetM12()

float raylib::Matrix::GetM12 ( )
inline

Definition at line 77 of file Matrix.hpp.

◆ GetM13()

float raylib::Matrix::GetM13 ( )
inline

Definition at line 78 of file Matrix.hpp.

◆ GetM14()

float raylib::Matrix::GetM14 ( )
inline

Definition at line 79 of file Matrix.hpp.

◆ GetM15()

float raylib::Matrix::GetM15 ( )
inline

Definition at line 80 of file Matrix.hpp.

◆ GetM2()

float raylib::Matrix::GetM2 ( )
inline

Definition at line 67 of file Matrix.hpp.

◆ GetM3()

float raylib::Matrix::GetM3 ( )
inline

Definition at line 68 of file Matrix.hpp.

◆ GetM4()

float raylib::Matrix::GetM4 ( )
inline

Definition at line 69 of file Matrix.hpp.

◆ GetM5()

float raylib::Matrix::GetM5 ( )
inline

Definition at line 70 of file Matrix.hpp.

◆ GetM6()

float raylib::Matrix::GetM6 ( )
inline

Definition at line 71 of file Matrix.hpp.

◆ GetM7()

float raylib::Matrix::GetM7 ( )
inline

Definition at line 72 of file Matrix.hpp.

◆ GetM8()

float raylib::Matrix::GetM8 ( )
inline

Definition at line 73 of file Matrix.hpp.

◆ GetM9()

float raylib::Matrix::GetM9 ( )
inline

Definition at line 74 of file Matrix.hpp.

◆ GetModelview()

static Matrix raylib::Matrix::GetModelview ( )
inlinestatic

Definition at line 121 of file Matrix.hpp.

◆ GetProjection()

static Matrix raylib::Matrix::GetProjection ( )
inlinestatic

Definition at line 125 of file Matrix.hpp.

◆ Identity()

static Matrix raylib::Matrix::Identity ( )
inlinestatic

Definition at line 142 of file Matrix.hpp.

◆ Invert()

Matrix raylib::Matrix::Invert ( )
inline

Definition at line 136 of file Matrix.hpp.

◆ LookAt()

static Matrix raylib::Matrix::LookAt ( Vector3  eye,
Vector3  target,
Vector3  up 
)
inlinestatic

Definition at line 197 of file Matrix.hpp.

◆ Multiply()

Matrix raylib::Matrix::Multiply ( Matrix  right)
inline

Definition at line 178 of file Matrix.hpp.

◆ Normalize()

Matrix raylib::Matrix::Normalize ( )
inline

Definition at line 139 of file Matrix.hpp.

◆ operator float16()

raylib::Matrix::operator float16 ( )
inline

Definition at line 204 of file Matrix.hpp.

References ToFloatV().

◆ operator*()

Matrix raylib::Matrix::operator* ( const Matrix &  matrix)
inline

Definition at line 181 of file Matrix.hpp.

◆ operator+()

Matrix raylib::Matrix::operator+ ( const Matrix &  matrix)
inline

Definition at line 148 of file Matrix.hpp.

◆ operator-()

Matrix raylib::Matrix::operator- ( const Matrix &  matrix)
inline

Definition at line 154 of file Matrix.hpp.

◆ operator=() [1/2]

Matrix& raylib::Matrix::operator= ( const ::Matrix &  matrix)
inline

Definition at line 82 of file Matrix.hpp.

References set().

◆ operator=() [2/2]

Matrix& raylib::Matrix::operator= ( const Matrix &  matrix)
inline

Definition at line 87 of file Matrix.hpp.

References set().

◆ operator==()

bool raylib::Matrix::operator== ( const Matrix &  other)
inline

Definition at line 92 of file Matrix.hpp.

◆ Ortho()

static Matrix raylib::Matrix::Ortho ( double  left,
double  right,
double  bottom,
double  top,
double  near,
double  far 
)
inlinestatic

Definition at line 193 of file Matrix.hpp.

◆ Perspective()

static Matrix raylib::Matrix::Perspective ( double  fovy,
double  aspect,
double  near,
double  far 
)
inlinestatic

Definition at line 189 of file Matrix.hpp.

◆ Rotate()

static Matrix raylib::Matrix::Rotate ( Vector3  axis,
float  angle 
)
inlinestatic

Definition at line 160 of file Matrix.hpp.

◆ RotateX()

static Matrix raylib::Matrix::RotateX ( float  angle)
inlinestatic

Definition at line 166 of file Matrix.hpp.

◆ RotateXYZ()

static Matrix raylib::Matrix::RotateXYZ ( Vector3  angle)
inlinestatic

Definition at line 163 of file Matrix.hpp.

◆ RotateY()

static Matrix raylib::Matrix::RotateY ( float  angle)
inlinestatic

Definition at line 169 of file Matrix.hpp.

◆ RotateZ()

static Matrix raylib::Matrix::RotateZ ( float  angle)
inlinestatic

Definition at line 172 of file Matrix.hpp.

◆ Scale()

static Matrix raylib::Matrix::Scale ( float  x,
float  y,
float  z 
)
inlinestatic

Definition at line 175 of file Matrix.hpp.

◆ set()

void raylib::Matrix::set ( ::Matrix  mat)
inline

Definition at line 46 of file Matrix.hpp.

Referenced by Matrix(), and operator=().

◆ SetM0()

void raylib::Matrix::SetM0 ( float  value)
inline

Definition at line 65 of file Matrix.hpp.

◆ SetM1()

void raylib::Matrix::SetM1 ( float  value)
inline

Definition at line 66 of file Matrix.hpp.

◆ SetM10()

void raylib::Matrix::SetM10 ( float  value)
inline

Definition at line 75 of file Matrix.hpp.

◆ SetM11()

void raylib::Matrix::SetM11 ( float  value)
inline

Definition at line 76 of file Matrix.hpp.

◆ SetM12()

void raylib::Matrix::SetM12 ( float  value)
inline

Definition at line 77 of file Matrix.hpp.

◆ SetM13()

void raylib::Matrix::SetM13 ( float  value)
inline

Definition at line 78 of file Matrix.hpp.

◆ SetM14()

void raylib::Matrix::SetM14 ( float  value)
inline

Definition at line 79 of file Matrix.hpp.

◆ SetM15()

void raylib::Matrix::SetM15 ( float  value)
inline

Definition at line 80 of file Matrix.hpp.

◆ SetM2()

void raylib::Matrix::SetM2 ( float  value)
inline

Definition at line 67 of file Matrix.hpp.

◆ SetM3()

void raylib::Matrix::SetM3 ( float  value)
inline

Definition at line 68 of file Matrix.hpp.

◆ SetM4()

void raylib::Matrix::SetM4 ( float  value)
inline

Definition at line 69 of file Matrix.hpp.

◆ SetM5()

void raylib::Matrix::SetM5 ( float  value)
inline

Definition at line 70 of file Matrix.hpp.

◆ SetM6()

void raylib::Matrix::SetM6 ( float  value)
inline

Definition at line 71 of file Matrix.hpp.

◆ SetM7()

void raylib::Matrix::SetM7 ( float  value)
inline

Definition at line 72 of file Matrix.hpp.

◆ SetM8()

void raylib::Matrix::SetM8 ( float  value)
inline

Definition at line 73 of file Matrix.hpp.

◆ SetM9()

void raylib::Matrix::SetM9 ( float  value)
inline

Definition at line 74 of file Matrix.hpp.

◆ SetModelview()

Matrix& raylib::Matrix::SetModelview ( )
inline

Definition at line 116 of file Matrix.hpp.

◆ SetProjection()

Matrix& raylib::Matrix::SetProjection ( )
inline

Definition at line 111 of file Matrix.hpp.

◆ Subtract()

Matrix raylib::Matrix::Subtract ( ::Matrix  right)
inline

Definition at line 151 of file Matrix.hpp.

◆ ToFloatV()

float16 raylib::Matrix::ToFloatV ( )
inline

Definition at line 201 of file Matrix.hpp.

Referenced by operator float16().

◆ Trace()

float raylib::Matrix::Trace ( )
inline

Definition at line 130 of file Matrix.hpp.

◆ Translate()

static Matrix raylib::Matrix::Translate ( float  x,
float  y,
float  z 
)
inlinestatic

Definition at line 157 of file Matrix.hpp.

◆ Transpose()

Matrix raylib::Matrix::Transpose ( )
inline

Definition at line 133 of file Matrix.hpp.