openrndr / org.openrndr.math / CatmullRomChain2

CatmullRomChain2

class CatmullRomChain2 (source)

Constructors

<init>

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

Properties

loop

val loop: Boolean

segments

val segments: List<CatmullRom2>

Functions

position

fun position(rt: Double): Vector2

positions

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