mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
transformPoint should use Matrix4.perspectiveTransform
We want to normalize by w. Fixes #1585
This commit is contained in:
parent
e60f0e68d6
commit
ab5f012668
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user