diff options
author | chai <chaifix@163.com> | 2019-01-12 21:48:33 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-01-12 21:48:33 +0800 |
commit | 8b00d67febf133e89f6a0bfabc41feed555dc4a9 (patch) | |
tree | fe48ef17c250afa40c2588300fcdb5920dba6951 /src/libjin/math/je_transform.h | |
parent | a907c39756ef6b368d06643afa491c49a9044a8e (diff) |
*去掉文件前缀je_
Diffstat (limited to 'src/libjin/math/je_transform.h')
-rw-r--r-- | src/libjin/math/je_transform.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/libjin/math/je_transform.h b/src/libjin/math/je_transform.h deleted file mode 100644 index 35a1a13..0000000 --- a/src/libjin/math/je_transform.h +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef __JE_TRANSFORM_H__ -#define __JE_TRANSFORM_H__ - -#include "je_matrix.h" -#include "je_vector2.hpp" - -namespace JinEngine -{ - namespace Math - { - - class Transform - { - public: - Transform(); - Transform(float x, float y, float sx, float sy, float r, float ox, float oy); - - void set(float x, float y, float sx, float sy, float r, float ox, float oy); - - void setScale(float sx, float sy); - Vector2<float> getScale() const; - void scale(float sx, float sy); - - void setPosition(float x, float y); - void setPosition(const Vector2<float>& p); - Vector2<float> getPosition() const; - void move(float x, float y); - void move(const Vector2<float>& v); - - void setOrigin(float x, float y); - Vector2<float> getOrigin() const; - - void setRotation(float r); - float getRotation() const; - void rotate(float r); - - Matrix getMatrix() const; - - private: - Vector2<float> mPosition; - Vector2<float> mOrigin; - Vector2<float> mScale; - float mRotation; - - }; - - } -} - -#endif
\ No newline at end of file |