transformed method

Point<double> transformed(
  1. Point<double> p
)

Return a point transformed by this matrix.

Implementation

Point<double> transformed(Point<double> p) => Point(
    p.x * _get(0, 0) + p.y * _get(0, 1) + _get(0, 2),
    p.x * _get(1, 0) + p.y * _get(1, 1) + _get(1, 2));