transform
Transforms this point by applying the given affine transformation matrix. The transformation applies the matrix multiplication to the point's coordinates treating the point as a homogeneous coordinate vector [x, y, 1].
Return
a new Point2D with the transformed coordinates
Parameters
matrix
the affine transformation matrix to apply to this point