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.GetInnerRectangle(DeltaEngine.Datatypes.Rectangle)
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- relativeRectangle
- Type: DeltaEngine.Datatypes Rectangle
Return Value
Type: RectangleRemarks
Examples
[Test] public void GetInnerRectangle() { var rect = new Rectangle(1, 1, 2, 2); Assert.AreEqual(rect, rect.GetInnerRectangle(Rectangle.One)); Assert.AreEqual(new Rectangle(1.0f, 1.0f, 1.0f, 1.0f), rect.GetInnerRectangle(new Rectangle(0.0f, 0.0f, 0.5f, 0.5f))); Assert.AreEqual(new Rectangle(2.0f, 2.0f, 1.0f, 1.0f), rect.GetInnerRectangle(new Rectangle(0.5f, 0.5f, 0.5f, 0.5f))); }
See Also