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

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

#include <Mat4.h>

Public 成员函数

 Mat4 ()
 
 Mat4 (const glm::mat4 &m)
 
void identity ()
 
void translate (float x, float y, float z)
 
void rotateX (float radians)
 
void rotateY (float radians)
 
void rotateZ (float radians)
 
void scale (float sx, float sy, float sz)
 
void multiply (const Mat4 *other)
 
Mat4multiplied (const Mat4 *other) const
 
Vec3transformVec3 (const Vec3 *v) const
 
Vec2transformPoint2 (const Vec2 *v) const
 
float get (int index) const
 Column-major element 0..15.
 
void set (int index, float value)
 
Mat4clone () const
 
const glm::mat4 & raw () const
 
glm::mat4 & raw ()
 

详细描述

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

在文件 Mat4.h11 行定义.

构造及析构函数说明

◆ Mat4() [1/2]

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

在文件 Mat4.cpp12 行定义.

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

◆ Mat4() [2/2]

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

在文件 Mat4.cpp13 行定义.

成员函数说明

◆ clone()

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

在文件 Mat4.cpp61 行定义.

引用了 Mat4().

◆ get()

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

Column-major element 0..15.

在文件 Mat4.cpp51 行定义.

◆ identity()

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

在文件 Mat4.cpp15 行定义.

◆ multiplied()

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

在文件 Mat4.cpp34 行定义.

引用了 Mat4().

◆ multiply()

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

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

在文件 Mat4.cpp29 行定义.

◆ raw() [1/2]

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

在文件 Mat4.h37 行定义.

◆ raw() [2/2]

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

在文件 Mat4.h36 行定义.

◆ rotateX()

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

在文件 Mat4.cpp21 行定义.

◆ rotateY()

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

在文件 Mat4.cpp22 行定义.

◆ rotateZ()

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

在文件 Mat4.cpp23 行定义.

◆ scale()

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

在文件 Mat4.cpp25 行定义.

◆ set()

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

在文件 Mat4.cpp56 行定义.

引用了 value.

◆ transformPoint2()

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

在文件 Mat4.cpp45 行定义.

引用了 v.

◆ transformVec3()

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

在文件 Mat4.cpp39 行定义.

引用了 v.

◆ translate()

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

在文件 Mat4.cpp17 行定义.

引用了 x, y , 以及 z.


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