Vector3DTests IntersectRay 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 IntersectRay()
Examples

[Test]
public void IntersectRay()
{
    var rayOrigin = new Vector3D(1, 1, 1);
    var rayDirection = new Vector3D(-1, -1, -1);
    var v = new Vector3D(1, 2, 3);
    Assert.AreEqual(new Vector3D(4, 4, 4), v.IntersectRay(rayOrigin, rayDirection));
}
See Also