openrndr / org.openrndr.math / CatmullRomChain3

CatmullRomChain3

class CatmullRomChain3 (source)

Constructors

<init>

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

Properties

loop

val loop: Boolean

segments

val segments: List<CatmullRom3>

Functions

position

fun position(rt: Double): Vector3

positions

fun positions(steps: Int = segments.size * 4): List<Vector3>