Practical Tools for Simple Design
Loading...
Searching...
No Matches
Util::Transform Struct Reference

A struct representing a transformation in 2D space. More...

#include <Transform.hpp>

Public Attributes

glm::vec2 translation = {0, 0}
 The translation of the transformation. More...
 
float rotation = 0
 The rotation of the transformation. More...
 
glm::vec2 scale = {1, 1}
 The scale of the transformation. More...
 

Detailed Description

A struct representing a transformation in 2D space.

This struct encapsulates the properties of a transformation in 2D space.

Note
The order of Util::Transform is translation, rotation, and scale.

Member Data Documentation

◆ rotation

float Util::Transform::rotation = 0

The rotation of the transformation.

This property represents the rotation of the transformation in 2D space. It is represented as a float.

Note
The unit of rotation is in radians not degrees.

◆ scale

glm::vec2 Util::Transform::scale = {1, 1}

The scale of the transformation.

This property represents the scale of the transformation in 2D space. It is represented as a 2D vector.

◆ translation

glm::vec2 Util::Transform::translation = {0, 0}

The translation of the transformation.

This property represents the translation of the transformation in 2D space. It is represented as a 2D vector.


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