BezierPatchBase
open class BezierPatchBase<C : AlgebraicColor<C>, ConvertibleToColorRGBa>(val points: List<List<Vector2>>, val colors: List<List<C>> = emptyList())(source)
Represents a base class for a Bezier patch, a surface defined by control points with optional color assignments.
The Bezier patch is constructed from a 4x4 grid of control points and optionally a 4x4 grid of color values.
Parameters
C
The type of the color, which must implement the interfaces AlgebraicColor and ConvertibleToColorRGBa.
Throws
if the points
matrix is not 4x4, or if colors
is not empty and not 4x4.
Inheritors
Constructors
Properties
Link copied to clipboard
Return a transposed version of the bezier path by transposing the points matrix
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Generate a random point on the path
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <K : AlgebraicColor<K>, ConvertibleToColorRGBa> withColors(colors: List<List<K>>): BezierPatchBase<K>