Segment

interface Segment<V : Vector<V>>(source)

Represents a geometric segment defined by a start and an endpoint.

Parameters

V

The type of vector representing the start and end points of the segment.

Inheritors

Properties

Link copied to clipboard
abstract val end: V

Returns the end point of the segment.

Link copied to clipboard
abstract val start: V

Returns the start point of the segment.

Functions

Link copied to clipboard
open fun length(): Double

Get the length of the segment.