KeyTriggerTests UseMoveDirectlyCommandToMoveCircleAround Method Delta Engine Documentation

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

public void UseMoveDirectlyCommandToMoveCircleAround()
Examples

[Test]
public void UseMoveDirectlyCommandToMoveCircleAround()
{
    var circle = new Ellipse(Vector2D.Half, 0.25f, 0.25f, Color.Orange);
    new Command(Command.MoveDirectly, position =>
        circle.DrawArea = circle.DrawArea.Move(position / 24.0f)); //ncrunch: no coverage
}
See Also