rangeTo

operator fun <T : LinearType<T>> LinearType<T>.rangeTo(end: T): LinearRange1D<T>(source)

Creates a range from the current linear type instance to the specified end value.

Return

A LinearRange that represents the range from the current instance to the specified end value.

Parameters

end

The end value of the range.


operator fun <T : LinearType<T>> LinearRange1D<T>.rangeTo(end: LinearRange1D<T>): LinearRange2D<T>(source)

Creates a LinearRange2D instance using this LinearRange1D as the starting range and the specified end as the ending range.

Return

A LinearRange2D instance representing the range from this starting range to the specified ending range.

Parameters

end

The ending LinearRange1D to create a 2D range.


operator fun <T : LinearType<T>> LinearRange2D<T>.rangeTo(end: LinearRange2D<T>): LinearRange3D<T>(source)

Creates a 3D linear range from the current 2D linear range to the specified 2D linear range.

Return

A new instance of LinearRange3D representing the range from the current 2D range to the specified end range.

Parameters

end

The ending 2D linear range to define the 3D linear range.


operator fun <T : LinearType<T>> LinearRange3D<T>.rangeTo(end: LinearRange3D<T>): LinearRange4D<T>(source)

Creates a LinearRange4D object representing the range between this LinearRange4D instance and the specified end LinearRange3D instance.

Return

A LinearRange4D object representing the range from this instance to the specified end instance.

Parameters

end

The ending LinearRange3D instance that defines the range.