Plane Normal Property Delta Engine Documentation

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

public Vector3D Normal { get; set; }

Property Value

Type: Vector3D
Remarks

Tests: DeltaEngine.Tests.Datatypes.PlaneTests
Examples

2 unit tests call DeltaEngine.Datatypes.Plane.Normal
[Test]
public void CreatePlaneFromDistance()
{
    var plane = new Plane(Vector3D.UnitY, 1.0f);
    Assert.AreEqual(Vector3D.UnitY, plane.Normal);
    Assert.AreEqual(1.0f, plane.Distance);
}
[Test]
public void CreatePlaneFromPointOnPlane()
{
    var plane = new Plane(Vector3D.UnitY, new Vector3D(0, 1, 0));
    Assert.AreEqual(Vector3D.UnitY, plane.Normal);
    Assert.AreEqual(-1.0f, plane.Distance);
}
See Also