Hi,

How can I calculate affine transform between three pairs of the corresponding points?

I have 3 pairs of the corresponding points:

```
cocos2d::Vec2 ps1[3];
cocos2d::Vec2 ps2[3];
```

I need function

```
cocos2d::Mat4 getAffineTransform(const cocos2d::Vec2 ps1[3], const cocos2d::Vec2 ps2[3])
{
//compute mat4 for transformation
//ps1[0]->ps2[0]
//ps1[1]->ps2[1]
//ps1[2]->ps2[2]
//TODO:
return cocos2d::Mat4{};
}
```

and result pass to:

```
void Node::setNodeToParentTransform(const Mat4& transform)
```

To transform my cocos2d::Sprite