Vector3D IntersectNormal Method Delta Engine Documentation

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

public Vector3D IntersectNormal(
	Vector3D normal
)

Return Value

Type: Vector3D
Remarks

Tests: DeltaEngine.Tests.Datatypes.Vector3DTests
Examples

1 unit tests call DeltaEngine.Datatypes.Vector3D.IntersectNormal(DeltaEngine.Datatypes.Vector3D)
[Test]
public void IntersectNormal()
{
    var oneNormal = Vector3D.Normalize(Vector3D.One);
    var v = new Vector3D(1, 2, 3);
    Assert.IsTrue(new Vector3D(2, 2, 2).IsNearlyEqual(v.IntersectNormal(oneNormal)));
}
See Also