copyWith

abstract fun copyWith(first: P = this.first, second: P = this.second): Segment2D<P>

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