Stowy Physics Engine
0.1.0
Loading...
Searching...
No Matches
Transform.hpp
Go to the documentation of this file.
1
11
#pragma once
12
13
#include "
math/Vector2.hpp
"
14
15
namespace
stw
16
{
21
struct
Transform
22
{
23
public
:
27
Vector2
position
{};
28
32
Vector2
scale
{1, 1};
33
37
float
rotation
{};
38
};
39
}
Vector2.hpp
Contains the Vector2 struct.
stw
Definition
BroadPhaseGrid.hpp:18
stw::Transform
A transform of an object. Contains position, scale and rotation.
Definition
Transform.hpp:22
stw::Transform::rotation
float rotation
The rotation of this object.
Definition
Transform.hpp:37
stw::Transform::scale
Vector2 scale
The scale of this object.
Definition
Transform.hpp:32
stw::Transform::position
Vector2 position
The position of this object.
Definition
Transform.hpp:27
stw::Vector2
A struct representing a 2D Vector.
Definition
Vector2.hpp:21
include
Transform.hpp
Generated by
1.10.0