Package-level declarations

Interpolation utilities.

Types

Link copied to clipboard

Base class for uniform multi-interpolator.

Link copied to clipboard
class Curve2Interpolator<T : Number, Comparable<T>>(curve: Curve2<T>) : Interpolator<T, <Error class: unknown class><T>>

Curve interpolator for 2D vectors.

Link copied to clipboard
class Curve3Interpolator<T : Number, Comparable<T>>(curve: Curve3<T>) : Interpolator<T, <Error class: unknown class><T>>

Curve interpolator for 3D vectors.

Link copied to clipboard
class Curve4Interpolator<T : Number, Comparable<T>>(curve: Curve4<T>) : Interpolator<T, <Error class: unknown class><T>>

Curve interpolator for 3D vectors in rational form.

Link copied to clipboard
interface Interpolator<T : Number, Comparable<T>, R>

Interpolator for values of type R, from parameter value of type T.

Link copied to clipboard
class MappingInterpolator<T : Number, Comparable<T>, R1, R2>(interpolator: Interpolator<T, R1>, transform: (R1) -> R2) : Interpolator<T, R2>

A mapping interpolator, returning values from given interpolator, transformed using given transform function.

Link copied to clipboard

Multi-interpolator for values of type R, from parameter value of type T.

Link copied to clipboard

Uniform linear multi-interpolator for floating-point number values.

Link copied to clipboard
data class UniformLinearVec2MultiInterpolator<T : Number, Comparable<T>>(val values: List<<Error class: unknown class><T>>, val type: KClass<T>) : BaseUniformMultiInterpolator<T, <Error class: unknown class><T>>

Uniform linear multi-interpolator for 2D vectors.

Link copied to clipboard
data class UniformLinearVec3MultiInterpolator<T : Number, Comparable<T>>(val values: List<<Error class: unknown class><T>>, val type: KClass<T>) : BaseUniformMultiInterpolator<T, <Error class: unknown class><T>>

Uniform linear multi-interpolator for 3D vectors.

Functions

Link copied to clipboard
fun <T : Number, Comparable<T>, R1, R2> Interpolator<T, R1>.map(transform: (R1) -> R2): Interpolator<T, R2>

Returns a mapping interpolator, returning values from this interpolator, transformed using given transform function.

Link copied to clipboard
inline fun <T : Number, Comparable<T>> UniformLinearVec2MultiInterpolator(vararg values: <Error class: unknown class><T>): UniformLinearVec2MultiInterpolator<T>
inline fun <T : Number, Comparable<T>> UniformLinearVec2MultiInterpolator(values: List<<Error class: unknown class><T>>): UniformLinearVec2MultiInterpolator<T>

Returns a new UniformLinearVec2MultiInterpolator with given key values.

Link copied to clipboard
inline fun <T : Number, Comparable<T>> UniformLinearVec3MultiInterpolator(vararg values: <Error class: unknown class><T>): UniformLinearVec3MultiInterpolator<T>
inline fun <T : Number, Comparable<T>> UniformLinearVec3MultiInterpolator(values: List<<Error class: unknown class><T>>): UniformLinearVec3MultiInterpolator<T>

Returns a new UniformLinearVec3MultiInterpolator with given key values.