Column-major 4x4 matrix wrapping glm::mat4.
更多...
#include <Mat4.h>
|
| | 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() [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 |
◆ get()
| float eve::math::Mat4::get |
( |
int |
index | ) |
const |
◆ identity()
| void eve::math::Mat4::identity |
( |
| ) |
|
Resets to the identity matrix.
在文件 Mat4.cpp 第 15 行定义.
◆ multiplied()
| Mat4 * eve::math::Mat4::multiplied |
( |
const Mat4 * |
other | ) |
const |
◆ 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 |
◆ raw() [2/2]
| const glm::mat4 & eve::math::Mat4::raw |
( |
| ) |
const |
|
inline |
◆ 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 |
|
) |
| |
◆ transformPoint2()
| Vec2 * eve::math::Mat4::transformPoint2 |
( |
const Vec2 * |
v | ) |
const |
◆ transformVec3()
| Vec3 * eve::math::Mat4::transformVec3 |
( |
const Vec3 * |
v | ) |
const |
◆ translate()
| void eve::math::Mat4::translate |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
Post-multiplies a translation.
在文件 Mat4.cpp 第 17 行定义.
引用了 x, y , 以及 z.
该类的文档由以下文件生成: