Brick Position Property Delta Engine Documentation

Namespace: Blocks
Assembly: Blocks (in Blocks.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public Vector2D Position { get; }

Property Value

Type: Vector2D
Remarks

Tests: Blocks.Tests.BrickTests
Examples

1 unit tests call Blocks.Brick.Position
[Test, CloseAfterFirstFrame]
public void Position()
{
    var brick = new Brick(material, new Vector2D(0.1f, 0.2f), displayMode)
    {
        TopLeftGridCoord = new Vector2D(0.4f, 0.8f)
    };
    Assert.AreEqual(new Vector2D(0.5f, 1.0f), brick.Position);
}
See Also