Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Static Public Member Functions | List of all members
smlt::Mat4 Struct Reference

Public Member Functions

 Mat4 (const Quaternion &rhs)
 Mat4 (const Quaternion &rot, const Vec3 &trans, const Vec3 &scale)
Mat4 operator* (const Mat4 &rhs) const
Vec4 operator* (const Vec4 &rhs) const
Vec3 operator* (const Vec3 &rhs) const
void extract_rotation_and_translation (Quaternion &rotation, Vec3 &translation) const
const float & operator[] (const uint32_t index) const
float & operator[] (const uint32_t index)
const float & operator[] (const int index) const
float & operator[] (const int index)
void inverse ()
Mat4 inversed () const
Plane extract_plane (FrustumPlane plane) const
const float * data () const

Static Public Member Functions

static Mat4 as_rotation_x (const Degrees &angle)
static Mat4 as_rotation_y (const Degrees &angle)
static Mat4 as_rotation_z (const Degrees &angle)
static Mat4 as_rotation_xyz (const Degrees &angle_x, const Degrees &angle_y, const Degrees &angle_z)
static Mat4 as_look_at (const Vec3 &eye, const Vec3 &target, const Vec3 &up)
static Mat4 as_scaling (float s)
static Mat4 from_pos_rot_scale (const Vec3 &pos, const Quaternion &rot, const Vec3 &scale)
static Mat4 as_translation (const Vec3 &v)
static Mat4 as_projection (const Degrees &fov, float aspect, float near, float far)
static Mat4 as_orthographic (float left, float right, float bottom, float top, float zNear, float zFar)

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