copyWith

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

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