Entity2DTests SettingRotationWithoutInterpolationSetsLastRotationAlso Method Delta Engine Documentation

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

public void SettingRotationWithoutInterpolationSetsLastRotationAlso()
Examples

[Test]
public void SettingRotationWithoutInterpolationSetsLastRotationAlso()
{
    var entity = new MockEntity2D(Rectangle.Zero) { Rotation = 90.0f };
    Assert.AreEqual(90.0f, entity.GetLastTickLerpComponents()[0]);
    entity.SetWithoutInterpolation(180.0f);
    Assert.AreEqual(180.0f, entity.Rotation);
    Assert.AreEqual(180.0f, entity.GetLastTickLerpComponents()[0]);
}
See Also