summaryrefslogtreecommitdiff
path: root/source/modules/asura-utils/Math/Transform.h
blob: 23d0709223197c52aa27e17a1f4502cf03a46be5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _ASURA_ENGINE_TRANSFORM_H_
#define _ASURA_ENGINE_TRANSFORM_H_

#include "../scripting/Portable.hpp"

namespace AsuraEngine
{
	namespace Math
	{

		class Transform
		{
		public:

			void Set(float x, float y, float sx, float sy, float ox, float oy, float r);

			void LoadIdentity();

			void Move(float dx = 0, float dy = 0);
			void Rotate(float r);
			void Scale(float sx, float sy);

			float m[16]; //4x4 matrix

		};

	}
}

#endif