copyWith

open override fun copyWith(first: P, second: P): Segment2D<P>

Creates a copy of this Segment2D using the specified first and second points.