26 lines
537 B
C++
26 lines
537 B
C++
#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);
|
|
};
|