Пример #1
0
 public Point2D Transform(Matrix2x2 matrix)
 {
     return(new Point2D(matrix.V00 * X + matrix.V01 * Y, matrix.V10 * X + matrix.V11 * Y));
 }
Пример #2
0
 public Polygon2D Transform(Matrix2x2 matrix, Vector2D translation = new Vector2D())
 {
     return(new Polygon2D(this.Select(p => p.Transform(matrix) + translation).ToList()));
 }