findExtremeCoordsOnX

fun <V : Vector2D<V>> List<V>.findExtremeCoordsOnX(): ClosedRange<Double>

Given a non empty list of points represented as vectors, this method finds the extreme coordinates (i.e. min and max coordinates) on the X-axis, these are used to create the returned ClosedRange.