openrndr / org.openrndr.math / CatmulRom1

CatmulRom1

class CatmulRom1 (source)

1D Catmull-Rom segment

Constructors

<init>

1D Catmull-Rom segment

CatmulRom1(p0: Double, p1: Double, p2: Double, p3: Double, alpha: Double = 0.5)

Properties

alpha

val alpha: Double

p0

val p0: Double

p1

val p1: Double

p2

val p2: Double

p3

val p3: Double

t0

val t0: Double

t1

val t1: Double

t2

val t2: Double

t3

val t3: Double

Functions

position

fun position(rt: Double): Double