transform

abstract fun transform(transformer: Transformer<V>): Segment<V>(source)

Applies a transformation to the endpoints of this segment.

Return

A new segment with transformed endpoints.

Parameters

transformer

The transformer to apply to the segment endpoints.