webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Matrix4 Struct Reference

#include <Matrix.h>

Public Member Functions

 Matrix4 ()
 
 Matrix4 (float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
 

Static Public Member Functions

static Matrix4 identity ()
 
static Matrix4 rotate (float angle, const Vector3 &p)
 
static Matrix4 translate (const Vector3 &t)
 
static Matrix4 scale (const Vector3 &s)
 
static Matrix4 frustum (float l, float r, float b, float t, float n, float f)
 
static Matrix4 perspective (float fov, float aspectRatio, float n, float f)
 
static Matrix4 ortho (float l, float r, float b, float t, float n, float f)
 
static Matrix4 rollPitchYaw (float roll, float pitch, float yaw)
 
static Matrix4 invert (const Matrix4 &mat)
 
static Matrix4 transpose (const Matrix4 &mat)
 
static Vector3 transform (const Matrix4 &mat, const Vector3 &pt)
 
static Vector3 transform (const Matrix4 &mat, const Vector4 &pt)
 

Public Attributes

float data [16]
 

Constructor & Destructor Documentation

◆ Matrix4() [1/2]

Matrix4::Matrix4 ( )

◆ Matrix4() [2/2]

Matrix4::Matrix4 ( float  m00,
float  m01,
float  m02,
float  m03,
float  m10,
float  m11,
float  m12,
float  m13,
float  m20,
float  m21,
float  m22,
float  m23,
float  m30,
float  m31,
float  m32,
float  m33 
)

Member Function Documentation

◆ frustum()

Matrix4 Matrix4::frustum ( float  l,
float  r,
float  b,
float  t,
float  n,
float  f 
)
static

◆ identity()

Matrix4 Matrix4::identity ( )
static

◆ invert()

Matrix4 Matrix4::invert ( const Matrix4 mat)
static

◆ ortho()

Matrix4 Matrix4::ortho ( float  l,
float  r,
float  b,
float  t,
float  n,
float  f 
)
static

◆ perspective()

Matrix4 Matrix4::perspective ( float  fov,
float  aspectRatio,
float  n,
float  f 
)
static

◆ rollPitchYaw()

Matrix4 Matrix4::rollPitchYaw ( float  roll,
float  pitch,
float  yaw 
)
static

◆ rotate()

Matrix4 Matrix4::rotate ( float  angle,
const Vector3 p 
)
static

◆ scale()

Matrix4 Matrix4::scale ( const Vector3 s)
static

◆ transform() [1/2]

Vector3 Matrix4::transform ( const Matrix4 mat,
const Vector3 pt 
)
static

◆ transform() [2/2]

Vector3 Matrix4::transform ( const Matrix4 mat,
const Vector4 pt 
)
static

◆ translate()

Matrix4 Matrix4::translate ( const Vector3 t)
static

◆ transpose()

Matrix4 Matrix4::transpose ( const Matrix4 mat)
static

Member Data Documentation

◆ data

float Matrix4::data[16]

The documentation for this struct was generated from the following files: