|
dl
|
2d坐标系 更多...
#include <dl_coor.h>
Public 成员函数 | |
| Coor * | Clone () |
| void | DtPosition (const Position &dt) |
| void | DtScale (const Position &dt) |
| void | DtScale (Float dt) |
| void | DtRotate (Float dt) |
| void | SetPosition (const Position &pos) |
| 不提供其他类型重载,避免{}无法判断类型 | |
| void | SetScale (const Position &scale) |
| void | SetScale (Float scale) |
| void | SetRotate (Float rotate) |
| void | SetParent (Coor *coor) |
| Position | GetPosition () const |
| Position | GetScale () const |
| Float | GetRotate () const |
| Coor * | GetParent () const |
| Position | ThisToWorld (Position pos) const |
| 将点 从 自身坐标系 转到 世界坐标系 | |
| Position | ThisToParent (Position pos) const |
| 将点 从 自身坐标系 转到 父坐标系 | |
| Position | WorldToThis (Position pos) const |
| 将点 从 世界坐标系 转到 自身坐标系 | |
| Position | ParentToThis (Position pos) const |
| 将点 从 父坐标系 转到 自身坐标系 | |
| Position | ThisToRoot (Position pos) const |
| 将点 从 自身坐标系 转到 根坐标系 | |
| Coor * | GetRoot () |
| 获取它的根坐标系 | |
| int | GetRootIndex () |
| 获取它的根坐标系id | |
| ~Coor () | |
静态 Public 成员函数 | |
| static Coor * | Create (Coor *parent=nullptr) |
友元 | |
| class | Factory |
| class | VK |
| Coor * dl::Coor::Clone | ( | ) |
| void dl::Coor::DtPosition | ( | const Position & | dt | ) |
| void dl::Coor::DtRotate | ( | Float | dt | ) |
| void dl::Coor::DtScale | ( | const Position & | dt | ) |
| void dl::Coor::DtScale | ( | Float | dt | ) |
| Coor * dl::Coor::GetParent | ( | ) | const |
| Position dl::Coor::GetPosition | ( | ) | const |
| Coor * dl::Coor::GetRoot | ( | ) |
获取它的根坐标系
| 返回对应根坐标系的指针,如果是窗口坐标系,返回nullptr |
| Float dl::Coor::GetRotate | ( | ) | const |
| Position dl::Coor::GetScale | ( | ) | const |
| void dl::Coor::SetParent | ( | Coor * | coor | ) |
| void dl::Coor::SetPosition | ( | const Position & | pos | ) |
不提供其他类型重载,避免{}无法判断类型
| void dl::Coor::SetRotate | ( | Float | rotate | ) |
| void dl::Coor::SetScale | ( | const Position & | scale | ) |