Line3DTests CreateLine3D Method Delta Engine Documentation

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

public void CreateLine3D()
Examples

[Test, CloseAfterFirstFrame]
public void CreateLine3D()
{
    CreateLookAtCamera(Vector3D.One * 4.0f, Vector3D.Zero);
    var entity = new Line3D(Vector3D.Zero, Vector3D.One, Color.Red);
    Assert.AreEqual(Vector3D.Zero, entity.StartPoint);
    Assert.AreEqual(Vector3D.One, entity.EndPoint);
}
See Also