TCB

data class TCB(val tension: Double = 0.0, val continuity: Double = 0.0, val bias: Double = 0.0)(source)

The tension, continuity and bias of a kochanekBartels spline at a point.

Parameters

tension

how tightly the curve bends at the point: 1 gives zero tangents, so the curve runs straight into and out of the point; negative values give rounder curves

continuity

how sharply the direction changes at the point: -1 gives a corner along the incoming and outgoing edges, 1 an inverted corner, 0 a smooth curve

bias

the direction of the tangent at the point: 1 along the incoming edge, so that the curve overshoots after the point, -1 along the outgoing edge, so that it overshoots before it, 0 their average

Constructors

Link copied to clipboard
constructor(tension: Double = 0.0, continuity: Double = 0.0, bias: Double = 0.0)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard