Package-level declarations

Types

Link copied to clipboard
data class LinearRange1D<T : LinearType<T>>(val start: T, val end: T) : LinearType<LinearRange1D<T>> , Parametric1D<T>

Represents a linear range between two values, defined by a start and an end point, where the type of the values implements the LinearType interface. This class allows interpolation and evenly spaced steps within the range.

Link copied to clipboard
data class LinearRange2D<T : LinearType<T>>(val start: LinearRange1D<T>, val end: LinearRange1D<T>) : LinearType<LinearRange2D<T>> , Parametric2D<T>

Represents a two-dimensional linear range defined by two one-dimensional linear ranges, where the start and end ranges provide endpoints for interpolation.

Link copied to clipboard
data class LinearRange3D<T : LinearType<T>>(val start: LinearRange2D<T>, val end: LinearRange2D<T>) : LinearType<LinearRange3D<T>> , Parametric3D<T>

Represents a three-dimensional linear range defined by two two-dimensional linear ranges, where the start and end ranges provide endpoints for trilinear interpolation.

Link copied to clipboard
data class LinearRange4D<T : LinearType<T>>(val start: LinearRange3D<T>, val end: LinearRange3D<T>) : LinearType<LinearRange4D<T>> , Parametric4D<T>

Represents a four-dimensional linear range defined by two three-dimensional linear ranges, providing endpoints for quadrilinear interpolation.

Functions

Link copied to clipboard
operator fun <T : LinearType<T>> LinearRange1D<T>.rangeTo(end: LinearRange1D<T>): LinearRange2D<T>

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

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

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

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

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

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

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