Entity2D Center 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 Center { get; set; }

Property Value

Type: Vector2D
Remarks

Tests: Asteroids.Tests.AsteroidTests
Examples

1 unit tests call DeltaEngine.Rendering2D.Entity2D.Center
[Test, CloseAfterFirstFrame]
public void CreateAsteroidAtDefinedPosition()
{
    var asteroid = new Asteroid(Vector2D.Zero, new InteractionLogic());
    Assert.AreEqual(Vector2D.Zero, asteroid.Center);
}
See Also