Entity2DTests RotatedDrawAreaContainsWithNoRotation Method Delta Engine Documentation

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

public void RotatedDrawAreaContainsWithNoRotation()
Examples

[Test]
public void RotatedDrawAreaContainsWithNoRotation()
{
    var entity = new Entity2D(new Rectangle(0.4f, 0.4f, 0.2f, 0.1f));
    Assert.IsTrue(entity.RotatedDrawAreaContains(new Vector2D(0.45f, 0.45f)));
    Assert.IsTrue(entity.RotatedDrawAreaContains(new Vector2D(0.55f, 0.45f)));
    Assert.IsFalse(entity.RotatedDrawAreaContains(new Vector2D(0.55f, 0.55f)));
}
See Also