LineSegment

interface LineSegment<out V : Vector>(source)

A directed line segment between begin and end

Functions

Link copied to clipboard
fun <V : Vector> LineSegment<V>.equalsLine(space: GeometrySpace<V>, other: LineSegment<V>, precision: Double = DEFAULT_PRECISION): Boolean

Line equality using GeometrySpace.norm provided by the space and given precision

Link copied to clipboard
fun <V : Vector> LineSegment<V>.line(algebra: GeometrySpace<V>): Line<V>

Properties

Link copied to clipboard
abstract val begin: V
Link copied to clipboard
abstract val end: V
Link copied to clipboard

Get a length of a line segment

Link copied to clipboard

Get a line, containing this LineSegment