Namespace: DeltaEngine.Rendering2D.Tests
Assembly: DeltaEngine.Rendering2D.Tests (in DeltaEngine.Rendering2D.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Rendering2D.Tests (in DeltaEngine.Rendering2D.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void RotatedDrawAreaContainsRotatedAroundTheScreenCenter() { var entity = new Entity2D(new Rectangle(0.1f, 0.1f, 0.1f, 0.1f)) { Rotation = 180, RotationCenter = Vector2D.Half }; Assert.IsFalse(entity.RotatedDrawAreaContains(new Vector2D(0.15f, 0.15f))); Assert.IsTrue(entity.RotatedDrawAreaContains(new Vector2D(0.85f, 0.85f))); EntitiesRunner.Current.UpdateAndDrawAllEntities(() => {});
See Also