Rectangle Reduce Method Delta Engine Documentation

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

public Rectangle Reduce(
	Size size
)

Return Value

Type: Rectangle
Remarks

Tests: DeltaEngine.Tests.Datatypes.RectangleTests
Examples

1 unit tests call DeltaEngine.Datatypes.Rectangle.Reduce(DeltaEngine.Datatypes.Size)
[Test]
public void Reduce()
{
    var rect = new Rectangle(1, 1, 2, 2);
    Assert.AreEqual(new Rectangle(1.5f, 1.5f, 1, 1), rect.Reduce(Size.One));
}
See Also