SimplexRange4D

data class SimplexRange4D<T : LinearType<T>>(val x0: T, val x1: T, val x2: T, val x3: T, val x4: T) : Parametric4D<T> (source)

Represents a 4D parametric simplex range defined by five control points of type T.

This class computes a value within the simplex range based on four parametric inputs (u, v, w, t). The control points x0, x1, x2, x3, and x4 determine the shape of the simplex, and the resulting value is calculated as a weighted combination of the control points using barycentric-like coordinates derived from the parametric inputs.

The generic type T must extend LinearType<T>, as the calculation requires linear operations.

Parameters

T

the type of each control point, constrained to types that implement LinearType.

Constructors

Link copied to clipboard
constructor(x0: T, x1: T, x2: T, x3: T, x4: T)

Properties

Link copied to clipboard
val x0: T

the first control point of the simplex.

Link copied to clipboard
val x1: T

the second control point of the simplex.

Link copied to clipboard
val x2: T

the third control point of the simplex.

Link copied to clipboard
val x3: T

the fourth control point of the simplex.

Link copied to clipboard
val x4: T

the fifth control point of the simplex.

Functions

Link copied to clipboard
open override fun value(u: Double, v: Double, w: Double, t: Double): T