RayTests EqualityOfRay Method Delta Engine Documentation

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

public void EqualityOfRay()
Examples

[Test]
public void EqualityOfRay()
{
    Assert.AreEqual(new Ray(Vector3D.UnitZ, Vector3D.One), new Ray(Vector3D.UnitZ, Vector3D.One));
    Assert.AreNotEqual(new Ray(Vector3D.UnitX, Vector3D.One),
        new Ray(Vector3D.UnitZ, Vector3D.One));
    Assert.AreNotEqual(new Ray(Vector3D.UnitZ, Vector3D.One),
        new Ray(Vector3D.UnitZ, Vector3D.One * 2));
}
See Also