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
.