From 160e1299ef3d95f8e8c48706d7f61dd3dc6c6b60 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 11 Feb 2020 11:29:07 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=20tab=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/math/transform.h | 58 ++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'src/libjin/math/transform.h') diff --git a/src/libjin/math/transform.h b/src/libjin/math/transform.h index 3f3c199..0a0fa0a 100644 --- a/src/libjin/math/transform.h +++ b/src/libjin/math/transform.h @@ -6,45 +6,45 @@ namespace JinEngine { - namespace Math - { + namespace Math + { - class Transform - { - public: - Transform(); - Transform(float x, float y, float sx, float sy, float r, float ox, float oy); + 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 set(float x, float y, float sx, float sy, float r, float ox, float oy); - void setScale(float sx, float sy); - Vector2 getScale() const; - void scale(float sx, float sy); + void setScale(float sx, float sy); + Vector2 getScale() const; + void scale(float sx, float sy); - void setPosition(float x, float y); - void setPosition(const Vector2& p); - Vector2 getPosition() const; - void move(float x, float y); - void move(const Vector2& v); + void setPosition(float x, float y); + void setPosition(const Vector2& p); + Vector2 getPosition() const; + void move(float x, float y); + void move(const Vector2& v); - void setOrigin(float x, float y); - Vector2 getOrigin() const; + void setOrigin(float x, float y); + Vector2 getOrigin() const; - void setRotation(float r); - float getRotation() const; - void rotate(float r); + void setRotation(float r); + float getRotation() const; + void rotate(float r); - Matrix getMatrix() const; + Matrix getMatrix() const; - private: - Vector2 mPosition; - Vector2 mOrigin; - Vector2 mScale; - float mRotation; + private: + Vector2 mPosition; + Vector2 mOrigin; + Vector2 mScale; + float mRotation; - }; + }; - } + } } #endif \ No newline at end of file -- cgit v1.1-26-g67d0