HierarchyObjectTests ChangeHierarchyObjectRotation Method Delta Engine Documentation

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

public void ChangeHierarchyObjectRotation()
Examples

[Test]
public void ChangeHierarchyObjectRotation()
{
    var axis = Vector3D.UnitX;
    const float Angle = 90.0f;
    float invSqr2 = MathExtensions.InvSqrt(2);
    hierarchyObject3D.Orientation = Quaternion.FromAxisAngle(axis, Angle);
    Assert.AreEqual(new Vector3D(invSqr2, 0, 0), hierarchyObject3D.Orientation.Vector3D);
}
See Also