Line3DTests SetLine3DPoints 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 SetLine3DPoints()
Examples

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