LineSegment

fun LineSegment(center: Vector2F, orientation: ComplexF, length: Float): LineSegment

Creates a new instance of LineSegment.

Parameters

orientation

the value is expected to be normalized.

Throws

when length is less than zero.


fun LineSegment(pointA: Vector2F, pointB: Vector2F): LineSegment

Creates a new instance of LineSegment.