#include <core_math.h>
Inheritance diagram for math::matrix4_scale:


Public Member Functions | |
| matrix4_scale (scalar_t x, scalar_t y, scalar_t z) | |
| Create initialized scale matrix. | |
| const scalar_t * | operator[] (int i) const |
| operator [] is used to read, () is to write (const correctness). | |
| scalar_t * | operator() (int i) |
| operator [] is used to read, () is to write (const correctness) m[x][y] or m(x)[y] is the correct form. | |
| matrix4 & | load_identity () |
| Load Identity matrix. | |
| matrix4 & | load_rotation (const scalar_t angle, const vector4 axis) |
| Load matrix representing rotation about arbitrary vector by arbitrary angle. | |
| matrix4 & | load_translation (const vector4 &diff) |
| Load matrix representing translation in 3D space along diff[] vector. | |
| matrix4 & | load_scale (scalar_t x, scalar_t y, scalar_t z) |
| Load matrix representing scaling in 3D space in x, y and z axes. | |
| matrix4 & | load_basis_change (const vector3 &u, const vector3 &v, const vector3 &n) |
| Load BasisChange matrix. | |
| matrix4 & | load_basis_change (const vector3 &v, const vector3 &n) |
| Load BasisChange matrix. | |
| matrix4 & | load_perspective_projection (scalar_t width, scalar_t height, scalar_t z_near, scalar_t z_far) |
| Load perspective projection matrix. | |
| matrix4 & | load_parallel_projection (scalar_t left_plane, scalar_t right_plane, scalar_t top_plane, scalar_t bottom_plane, scalar_t near_plane, scalar_t far_plane) |
| Load parallel projection matrix. | |
Handy for initializing temporary matrices.
|
||||||||||||||||
|
Create initialized scale matrix.
|
|
|
operator [] is used to read, () is to write (const correctness). m[x][y] or m(x)[y] is the correct form. |
|
|
operator [] is used to read, () is to write (const correctness) m[x][y] or m(x)[y] is the correct form.
|
|
|
Load Identity matrix.
|
|
||||||||||||
|
Load matrix representing rotation about arbitrary vector by arbitrary angle.
|
|
|
Load matrix representing translation in 3D space along diff[] vector. Only first 3 elements of diff[] are used. |
|
||||||||||||||||
|
Load matrix representing scaling in 3D space in x, y and z axes.
|
|
||||||||||||||||
|
Load BasisChange matrix. New base is defined by given vectors u and v and n (normal) |
|
||||||||||||
|
Load BasisChange matrix. New base is defined by specified vectors u, v and n, while u is calculated automatically as cross product of given v and n vectors. |
|
||||||||||||||||||||
|
Load perspective projection matrix.
|
|
||||||||||||||||||||||||||||
|
Load parallel projection matrix.
|
1.3.6