Package-level declarations

Types

Link copied to clipboard

A utility class for blending between two rectified contours.

Link copied to clipboard

ContourBlend holds two rectified contours with an equal amount of segments

Functions

Link copied to clipboard
fun ShapeContour.blend(other: ShapeContour): ContourBlend

Create a ContourBlend instance for blending between this and other

Link copied to clipboard
fun ContourBlend(a: ShapeContour, b: ShapeContour, distanceTolerance: Double = 0.5, lengthScale: Double = 1.0): ContourBlend

Creates a ContourBlend instance for blending between two ShapeContour instances.

Link copied to clipboard
fun RectifiedContour.mix(other: RectifiedContour, blendFunction: (Double) -> Double): ShapeContour

Blends two rectified contours by applying a blend function to their segments.

fun RectifiedPath3D.mix(other: RectifiedPath3D, blendFunction: (Double) -> Double): Path3D

Produces a blended 3D path by mixing two rectified paths using a custom blending function.

fun ShapeContour.mix(other: ShapeContour, factor: Double): ShapeContour

Mix between two ShapeContour instances

fun ShapeContour.mix(other: ShapeContour, factor: (Double) -> Double): ShapeContour

fun Segment2D.mix(other: Segment2D, f0: Double, f1: Double, f2: Double, f3: Double): Segment2D

Blends the properties of two Segment2D instances based on the provided weights for each control point and the corner property.

fun Segment3D.mix(other: Segment3D, f0: Double, f1: Double, f2: Double, f3: Double): Segment3D

Creates a new Segment3D by blending the coordinates of two input segments using specified weights.

Link copied to clipboard
fun Path3DBlend(a: Path3D, b: Path3D): Path3DBlend

Create a ContourBlend for contours a and b