Entity2D TopLeft Property Delta Engine Documentation

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

public Vector2D TopLeft { get; set; }

Property Value

Type: Vector2D
Remarks

Tests: GameOfLife.Tests.GameOfLifeTests
Examples

2 unit tests call DeltaEngine.Rendering2D.Entity2D.TopLeft
[Test, CloseAfterFirstFrame]
public void CheckForLiveCellOnTheTopLeft()
{
    gameOfLife.ReviveCellAtPosition(1, 1);
    AssertOneNeighborCellIsAliveFromCenterOfGrid();
}
[Test, CloseAfterFirstFrame]
public void BoundCheckOnTheTopLeftBorderOfTheGrid()
{
    AssertNoNeighborCellIsAliveOutsideTheGridBorder(0, 0);
}
See Also