Transform2D

To create a Transform2D, you must provide a Position2D or a Vector2 for translation (Vector2 is converted to Position2D internally), a float representing rotation in degrees, and a Vector2 representing scale.

var transform = new Transform2D(new Position2D(4, 1), 5f, new Vector2(3, 1));

The following section will describe how to use an IShape2D in conjunction with Transform2D to perform collision detection.