TouchRotateTrigger Angle Property Delta Engine Documentation

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

public float Angle { get; set; }

Property Value

Type: Single
Remarks

Tests: DeltaEngine.Input.Tests.TouchRotateTriggerTests
Examples

1 unit tests call DeltaEngine.Input.TouchRotateTrigger.Angle
[Test, CloseAfterFirstFrame]
public void Angle()
{
    var touch = Resolve<Touch>() as MockTouch;
    if (touch == null)
        return; //ncrunch: no coverage 
    var trigger = new TouchRotateTrigger();
        touch.SetTouchState(0, State.Pressing, new Vector2D(0.5f, 0.1f));
    touch.SetTouchState(1, State.Pressed, new Vector2D(0.5f, 0.7f));
    touch.Update(new[] { trigger });
See Also