openrndr / org.openrndr.math / CatmullRomChain1

CatmullRomChain1

class CatmullRomChain1 (source)

1D Catmull-Rom chain

Constructors

<init>

1D Catmull-Rom chain

CatmullRomChain1(points: List<Double>, alpha: Double = 0.5, loop: Boolean = false)

Properties

loop

val loop: Boolean

segments

val segments: List<CatmulRom1>

Functions

position

fun position(rt: Double): Double