Transformation matrix

From vegard.wiki
Jump to navigation Jump to search

2D

Rotation

Source: https://en.wikipedia.org/wiki/Rotation_matrix

3D

Translation

Source: https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glTranslate.xml

Scaling

Source: https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glScale.xml

Rotation

with

Source: https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glRotate.xml

See also