Commit aa6c761a authored by Adam Barth's avatar Adam Barth

Merge pull request #1601 from abarth/perspective

transformPoint should use Matrix4.perspectiveTransform
parents e60f0e68 ab5f0126
......@@ -90,7 +90,7 @@ class MatrixUtils {
static Point transformPoint(Matrix4 transform, Point point) {
Vector3 position3 = new Vector3(point.x, point.y, 0.0);
Vector3 transformed3 = transform.transform3(position3);
Vector3 transformed3 = transform.perspectiveTransform(position3);
return new Point(transformed3.x, transformed3.y);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment