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.GetRelativePoint(DeltaEngine.Datatypes.Vector2D)
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- point
- Type: DeltaEngine.Datatypes Vector2D
Return Value
Type: Vector2DRemarks
Examples
[Test] public void GetRelativePoint() { var rect = new Rectangle(1, 2, 3, 4); Assert.AreEqual(Vector2D.Zero, rect.GetRelativePoint(new Vector2D(1, 2))); Assert.AreEqual(Vector2D.One, rect.GetRelativePoint(new Vector2D(4, 6))); Assert.AreEqual(new Vector2D(-1, -2), rect.GetRelativePoint(new Vector2D(-2, -6))); }
See Also