Namespace: DeltaEngine.Datatypes
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Datatypes.RectangleTests
1 unit tests call DeltaEngine.Datatypes.Rectangle.Move(DeltaEngine.Datatypes.Vector2D)
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- translation
- Type: DeltaEngine.Datatypes Vector2D
Return Value
Type: RectangleRemarks
Examples
[Test] public void Move() { var rect = new Rectangle(1, 1, 1, 1); Assert.AreEqual(rect, rect.Move(Vector2D.Zero)); Assert.AreEqual(new Rectangle(2.0f, 2.0f, 1.0f, 1.0f), rect.Move(Vector2D.One)); Assert.AreEqual(new Rectangle(-1.0f, -2.0f, 1.0f, 1.0f), rect.Move(-2, -3)); }
See Also