SimplexRangeND

class SimplexRangeND<T : LinearType<T>>(val x: List<T>)(source)

Represents a value defined over an N-dimensional simplex range.

This class is constructed using a list of elements of a generic type T that conforms to the LinearType interface. The SimplexRangeND allows evaluating a value within the simplex defined by these elements, which are scaled and combined based on a provided set of barycentric coordinates.

Parameters

T

The type of elements in the simplex, which must implement the LinearType interface.

Constructors

Link copied to clipboard
constructor(x: List<T>)

Properties

Link copied to clipboard
val x: List<T>

The list of elements representing the vertices of the N-dimensional simplex.

Functions

Link copied to clipboard

Computes a value determined by the coordinates given in the input array.