SimpleGL
1.1.0
A framework for platform independent rendering
|
This class contains static methods to calculate model matrices. More...
#include <transform.hpp>
Static Public Member Functions | |
static glm::mat4 | identity () |
Returns an identity matrix. More... | |
static glm::mat4 | scale (float x, float y, float z) |
Calculates a nonuniform scaling matrix. More... | |
static glm::mat4 | scale (glm::vec3 vector) |
Calculates a nonuniform scaling matrix. More... | |
static glm::mat4 | scale (glm::mat4 matrix, float x, float y, float z) |
Calculates a nonuniform scaling matrix. More... | |
static glm::mat4 | scale (glm::mat4 matrix, glm::vec3 vector) |
Calculates a nonuniform scaling matrix. More... | |
static glm::mat4 | translate (float x, float y, float z) |
Calculates a translation matrix. More... | |
static glm::mat4 | translate (glm::vec3 vector) |
Calculates a translation matrix. More... | |
static glm::mat4 | translate (glm::mat4 matrix, float x, float y, float z) |
Calculates a translation matrix. More... | |
static glm::mat4 | translate (glm::mat4 matrix, glm::vec3 vector) |
Calculates a translation matrix. More... | |
static glm::mat4 | rotate (float angle, float x, float y, float z) |
Calculates a rotation of angle degrees around the vector (x y z). More... | |
static glm::mat4 | rotate (float angle, glm::vec3 vector) |
Calculates a rotation of angle degrees around the vector (x y z). More... | |
static glm::mat4 | rotate (glm::mat4 matrix, float angle, float x, float y, float z) |
Calculates a rotation of angle degrees around the vector (x y z). More... | |
static glm::mat4 | rotate (glm::mat4 matrix, float angle, glm::vec3 vector) |
Calculates a rotation of angle degrees around the vector (x y z). More... | |
This class contains static methods to calculate model matrices.
Definition at line 66 of file transform.hpp.
|
static |
Returns an identity matrix.
Definition at line 20 of file transform.cpp.
|
static |
Calculates a rotation of angle degrees around the vector (x y z).
angle | Specifies the angle of rotation, in degrees. |
x | Specifies the X-coordinates of a vector. |
y | Specifies the Y-coordinates of a vector. |
z | Specifies the Z-coordinates of a vector. |
Definition at line 56 of file transform.cpp.
|
static |
Calculates a rotation of angle degrees around the vector (x y z).
angle | Specifies the angle of rotation, in degrees. |
vector | Specify the x, y, and z coordinates of a vector. |
Definition at line 60 of file transform.cpp.
|
static |
Calculates a rotation of angle degrees around the vector (x y z).
matrix | This matrix is multiplied by the rotation matrix. |
angle | Specifies the angle of rotation, in degrees. |
x | Specifies the X-coordinates of a vector. |
y | Specifies the Y-coordinates of a vector. |
z | Specifies the Z-coordinates of a vector. |
Definition at line 64 of file transform.cpp.
|
static |
Calculates a rotation of angle degrees around the vector (x y z).
matrix | This matrix is multiplied by the rotation matrix. |
angle | Specifies the angle of rotation, in degrees. |
vector | Specify the x, y, and z coordinates of a vector. |
Definition at line 68 of file transform.cpp.
|
static |
Calculates a nonuniform scaling matrix.
x | Specifies the scale factor along the x axis. |
y | Specifies the scale factor along the y axis. |
z | Specifies the scale factor along the z axes. |
Definition at line 24 of file transform.cpp.
|
static |
Calculates a nonuniform scaling matrix.
vector | Specifies the scale factors along the x, y, and z axes. |
Definition at line 28 of file transform.cpp.
|
static |
Calculates a nonuniform scaling matrix.
matrix | This matrix is multiplied by the scale matrix. |
x | Specifies the scale factor along the x axis. |
y | Specifies the scale factor along the y axis. |
z | Specifies the scale factor along the z axes. |
Definition at line 32 of file transform.cpp.
|
static |
Calculates a nonuniform scaling matrix.
matrix | This matrix is multiplied by the scale matrix. |
vector | Specifies the scale factors along the x, y, and z axes. |
Definition at line 36 of file transform.cpp.
|
static |
Calculates a translation matrix.
x | Specifies the X-coordinates of a translation vector. |
y | Specifies the Y-coordinates of a translation vector. |
z | Specifies the Z-coordinates of a translation vector. |
Definition at line 40 of file transform.cpp.
|
static |
Calculates a translation matrix.
vector | Specifies the translation vector. |
Definition at line 44 of file transform.cpp.
|
static |
Calculates a translation matrix.
matrix | This matrix is multiplied by the translation matrix. |
x | Specifies the X-coordinates of a translation vector. |
y | Specifies the Y-coordinates of a translation vector. |
z | Specifies the Z-coordinates of a translation vector. |
Definition at line 48 of file transform.cpp.
|
static |
Calculates a translation matrix.
matrix | This matrix is multiplied by the translation matrix. |
vector | Specifies the translation vector. |
Definition at line 52 of file transform.cpp.