SimplexRange2D

data class SimplexRange2D<T : LinearType<T>>(val x0: T, val x1: T, val x2: T) : Parametric2D<T> (source)

Represents a 2D simplex range interpolated in a parametric space. This class defines a triangular range in 2D space, parameterized by three control points x0, x1, and x2. It implements the Parametric2D interface, allowing evaluation of linear combinations of these control points based on two parameters u and v.

Parameters

T

The type parameter constrained to types that implement LinearType<T>, enabling operations such as addition, multiplication, and scalar interpolation.

Constructors

Link copied to clipboard
constructor(x0: T, x1: T, x2: 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.

Functions

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