alongSize method

PdfPoint alongSize(
  1. PdfPoint other
)

Returns the offset that is this fraction within the given size.

Implementation

PdfPoint alongSize(PdfPoint other) {
  final centerX = other.x / 2.0;
  final centerY = other.y / 2.0;
  return PdfPoint(centerX + x * centerX, centerY + y * centerY);
}