Entity3DTests SetAndGetEntity3DComponentsDirectly Method Delta Engine Documentation

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

public void SetAndGetEntity3DComponentsDirectly()
Examples

[Test, CloseAfterFirstFrame]
public void SetAndGetEntity3DComponentsDirectly()
{
    var entity = new Entity3D(Vector3D.Zero);
    entity.Set(Vector3D.One);
    Assert.AreEqual(Vector3D.One, entity.Get<Vector3D>());
    entity.Set(Quaternion.Identity);
    Assert.AreEqual(Quaternion.Identity, entity.Get<Quaternion>());
}
See Also