RectangleTests GetRotatedRectangleCornersWithoutRotation Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Datatypes
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void GetRotatedRectangleCornersWithoutRotation()
Examples

[Test]
public void GetRotatedRectangleCornersWithoutRotation()
{
    var points = new Rectangle(1, 1, 1, 1).GetRotatedRectangleCorners(Vector2D.Zero, 0);
    Assert.AreEqual(4, points.Length);
    Assert.AreEqual(Vector2D.One, points[0]);
    Assert.AreEqual(new Vector2D(1, 2), points[1]);
    Assert.AreEqual(new Vector2D(2, 2), points[2]);
}
See Also