LinearRange4D

data class LinearRange4D<T : LinearType<T>>(val start: LinearRange3D<T>, val end: LinearRange3D<T>) : LinearType<LinearRange4D<T>> , Parametric4D<T> (source)

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

This class supports interpolation across four dimensions using the parameters u, v, w, and t. The interpolation is computed as a combination of the start and end LinearRange3D objects:

  • The start LinearRange3D is weighted by (1.0 - t)

  • The end LinearRange3D is weighted by t

Parameters

T

The type of the values being interpolated, constrained by the LinearType interface.

Constructors

Link copied to clipboard
constructor(start: LinearRange3D<T>, end: LinearRange3D<T>)

Properties

Link copied to clipboard

The ending three-dimensional linear range.

Link copied to clipboard

The starting three-dimensional linear range.

Functions

Link copied to clipboard
open operator override fun div(scale: Double): LinearRange4D<T>
Link copied to clipboard
open operator override fun minus(right: LinearRange4D<T>): LinearRange4D<T>
Link copied to clipboard
open operator override fun plus(right: LinearRange4D<T>): LinearRange4D<T>
Link copied to clipboard
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.

Link copied to clipboard
open operator override fun times(scale: Double): LinearRange4D<T>
Link copied to clipboard
open override fun value(u: Double, v: Double, w: Double, t: Double): T