LinearRange2D

data class LinearRange2D<T : LinearType<T>>(val start: LinearRange1D<T>, val end: LinearRange1D<T>) : LinearType<LinearRange2D<T>> , Parametric2D<T> (source)

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

This class enables bilinear interpolation between the start and end ranges based on parameters u and v.

Parameters

T

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

Constructors

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

Properties

Link copied to clipboard

The ending one-dimensional linear range.

Link copied to clipboard

The starting one-dimensional linear range.

Functions

Link copied to clipboard
open operator override fun div(scale: Double): LinearRange2D<T>
Link copied to clipboard
open operator override fun minus(right: LinearRange2D<T>): LinearRange2D<T>
Link copied to clipboard
open operator override fun plus(right: LinearRange2D<T>): LinearRange2D<T>
Link copied to clipboard
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>> 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): LinearRange2D<T>
Link copied to clipboard
open override fun value(u: Double, v: Double): T