建档
This commit is contained in:
25
source/Tool/TransformT.h
Normal file
25
source/Tool/TransformT.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
#include "Tool/Common.h"
|
||||
/**
|
||||
* \~chinese
|
||||
* @brief 二维放射变换
|
||||
*/
|
||||
class TransformT
|
||||
{
|
||||
public:
|
||||
float rotation; ///< 旋转
|
||||
VecFPos position; ///< 坐标
|
||||
VecFPos scale; ///< 缩放
|
||||
|
||||
public:
|
||||
TransformT();
|
||||
|
||||
bool IsFast() const;
|
||||
|
||||
bool operator==(const TransformT &rhs) const;
|
||||
|
||||
TransformT operator+(const TransformT &rhs) const;
|
||||
TransformT operator-(const TransformT &rhs) const;
|
||||
TransformT &operator+=(const TransformT &rhs);
|
||||
TransformT &operator-=(const TransformT &rhs);
|
||||
};
|
||||
Reference in New Issue
Block a user