transformPoint function

PdfPoint transformPoint(
  1. Matrix4 transform,
  2. PdfPoint point
)

Implementation

PdfPoint transformPoint(Matrix4 transform, PdfPoint point) {
  final position3 = Vector3(point.x, point.y, 0);
  final transformed3 = transform.perspectiveTransform(position3);
  return PdfPoint(transformed3.x, transformed3.y);
}