5#include <glm/mat4x4.hpp>
17 explicit Mat4(
const glm::mat4 &
m);
22 void translate(
float x,
float y,
float z);
24 void rotateX(
float radians);
26 void rotateY(
float radians);
28 void rotateZ(
float radians);
34 void multiply(
const Mat4 *other);
35 Mat4 *multiplied(
const Mat4 *other)
const;
38 Vec2 *transformPoint2(
const Vec2 *
v)
const;
41 float get(
int index)
const;
47 const glm::mat4 &
raw()
const {
return m_; }
48 glm::mat4 &
raw() {
return m_; }
#define EVENGINE_API_FOUNDATION
每个链接组(link group)各自的导出宏。
std::array< float, 3 > scale
Column-major 4x4 matrix wrapping glm::mat4.
const glm::mat4 & raw() const
2D float vector (script-facing math module value).
3D float vector (script-facing math module value).