载入中...
搜索中...
未找到
eve::math::Mat4类 参考

Column-major 4x4 matrix wrapping glm::mat4. 更多...

#include <Mat4.h>

Public 成员函数

 Mat4 ()
 
 Mat4 (const glm::mat4 &m)
 Wraps an existing glm::mat4.
 
void identity ()
 Resets to the identity matrix.
 
void translate (float x, float y, float z)
 Post-multiplies a translation.
 
void rotateX (float radians)
 Post-multiplies a rotation about X (radians).
 
void rotateY (float radians)
 Post-multiplies a rotation about Y (radians).
 
void rotateZ (float radians)
 Post-multiplies a rotation about Z (radians).
 
void scale (float sx, float sy, float sz)
 Scales by scalar s. @ownership Caller deletes.
 
void multiply (const Mat4 *other)
 Post-multiplies by other (column-vector convention).
 
Mat4 * multiplied (const Mat4 *other) const
 
Vec3 * transformVec3 (const Vec3 *v) const
 
Vec2 * transformPoint2 (const Vec2 *v) const
 
float get (int index) const
 Column-major element 0..15.
 
void set (int index, float value)
 Sets all components.
 
Mat4 * clone () const
 
const glm::mat4 & raw () const
 
glm::mat4 & raw ()
 

详细描述

Column-major 4x4 matrix wrapping glm::mat4.

在文件 Mat4.h 第 13 行定义.

构造及析构函数说明

◆ Mat4() [1/2]

eve::math::Mat4::Mat4 ( )

在文件 Mat4.cpp 第 12 行定义.

被这些函数引用 clone() , 以及 multiplied().

◆ Mat4() [2/2]

eve::math::Mat4::Mat4 ( const glm::mat4 &  m)
explicit

Wraps an existing glm::mat4.

在文件 Mat4.cpp 第 13 行定义.

成员函数说明

◆ clone()

Mat4 * eve::math::Mat4::clone ( ) const

在文件 Mat4.cpp 第 61 行定义.

引用了 Mat4().

◆ get()

float eve::math::Mat4::get ( int  index) const

Column-major element 0..15.

在文件 Mat4.cpp 第 51 行定义.

引用了 index.

◆ identity()

void eve::math::Mat4::identity ( )

Resets to the identity matrix.

在文件 Mat4.cpp 第 15 行定义.

◆ multiplied()

Mat4 * eve::math::Mat4::multiplied ( const Mat4 *  other) const

在文件 Mat4.cpp 第 34 行定义.

引用了 Mat4().

◆ multiply()

void eve::math::Mat4::multiply ( const Mat4 *  other)

Post-multiplies by other (column-vector convention).

this = this * other (column-vector convention).

在文件 Mat4.cpp 第 29 行定义.

◆ raw() [1/2]

glm::mat4 & eve::math::Mat4::raw ( )
inline

在文件 Mat4.h 第 48 行定义.

◆ raw() [2/2]

const glm::mat4 & eve::math::Mat4::raw ( ) const
inline

在文件 Mat4.h 第 47 行定义.

◆ rotateX()

void eve::math::Mat4::rotateX ( float  radians)

Post-multiplies a rotation about X (radians).

在文件 Mat4.cpp 第 21 行定义.

◆ rotateY()

void eve::math::Mat4::rotateY ( float  radians)

Post-multiplies a rotation about Y (radians).

在文件 Mat4.cpp 第 22 行定义.

◆ rotateZ()

void eve::math::Mat4::rotateZ ( float  radians)

Post-multiplies a rotation about Z (radians).

在文件 Mat4.cpp 第 23 行定义.

◆ scale()

void eve::math::Mat4::scale ( float  sx,
float  sy,
float  sz 
)

Scales by scalar s. @ownership Caller deletes.

在文件 Mat4.cpp 第 25 行定义.

引用了 sx, sy , 以及 sz.

◆ set()

void eve::math::Mat4::set ( int  index,
float  value 
)

Sets all components.

在文件 Mat4.cpp 第 56 行定义.

引用了 index , 以及 value.

◆ transformPoint2()

Vec2 * eve::math::Mat4::transformPoint2 ( const Vec2 *  v) const

在文件 Mat4.cpp 第 45 行定义.

引用了 r , 以及 v.

◆ transformVec3()

Vec3 * eve::math::Mat4::transformVec3 ( const Vec3 *  v) const

在文件 Mat4.cpp 第 39 行定义.

引用了 r , 以及 v.

◆ translate()

void eve::math::Mat4::translate ( float  x,
float  y,
float  z 
)

Post-multiplies a translation.

在文件 Mat4.cpp 第 17 行定义.

引用了 x, y , 以及 z.


该类的文档由以下文件生成: