Table of Contents

Struct LineSegment3D

Namespace
MathAssertions.Geometry3D
Assembly
MathAssertions.dll

Finite line segment from Start to End.

public readonly record struct LineSegment3D : IEquatable<LineSegment3D>
Implements
Inherited Members

Constructors

LineSegment3D(Vector3, Vector3)

Finite line segment from Start to End.

public LineSegment3D(Vector3 Start, Vector3 End)

Parameters

Start Vector3

Starting endpoint of the segment.

End Vector3

Ending endpoint of the segment.

Properties

Direction

Unnormalized direction from Start to End: End - Start. Magnitude equals Length.

public Vector3 Direction { get; }

Property Value

Vector3

End

Ending endpoint of the segment.

public Vector3 End { get; init; }

Property Value

Vector3

Length

Length of the segment.

public float Length { get; }

Property Value

float

Start

Starting endpoint of the segment.

public Vector3 Start { get; init; }

Property Value

Vector3