Line3D EndPoint Property Delta Engine Documentation

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

public Vector3D EndPoint { get; set; }

Property Value

Type: Vector3D
Remarks

Tests: DeltaEngine.Rendering3D.Shapes.Tests.Line3DTests
Examples

2 unit tests call DeltaEngine.Rendering3D.Shapes.Line3D.EndPoint
[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);
}
[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