| 1899 | } |
| 1900 | |
| 1901 | Vec2 Node::convertToWorldSpace(const Vec2& nodePoint) const |
| 1902 | { |
| 1903 | Mat4 tmp = getNodeToWorldTransform(); |
| 1904 | Vec3 vec3(nodePoint.x, nodePoint.y, 0); |
| 1905 | Vec3 ret; |
| 1906 | tmp.transformPoint(vec3, &ret); |
| 1907 | return Vec2(ret.x, ret.y); |
| 1908 | } |
| 1909 | |
| 1910 | Vec2 Node::convertToNodeSpaceAR(const Vec2& worldPoint) const |
| 1911 | { |