transformPoint method
Applies the given matrix as a perspective transform to the given point.
This function assumes the given point has a z-coordinate of 0.0. The z-coordinate of the result is ignored.
Implementation
static Offset transformPoint(Matrix4 transform, Offset point) {
final Vector3 position3 = Vector3(point.dx, point.dy, 0.0);
final Vector3 transformed3 = transform.perspectiveTransform(position3);
return Offset(transformed3.x, transformed3.y);
}