transform

open override fun transform(transformer: Transformer<Vec2>): Segment2(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.