Grid2DTests ChangeDimensionAndScale Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D.Shapes.Tests
Assembly: DeltaEngine.Rendering2D.Shapes.Tests (in DeltaEngine.Rendering2D.Shapes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void ChangeDimensionAndScale()
Examples

[Test, CloseAfterFirstFrame]
public void ChangeDimensionAndScale()
{
    var grid = new Grid2D(new Size(2), Vector2D.Half);
    grid.Dimension = new Size(4);
    grid.GridScale = 2;
    Assert.AreEqual(2, grid.GridScale);
}
See Also