curvePoint()

Shape / Curves

Description

Evaluates the Catmull-Rom curve at parameter t.

Syntax

float curvePoint(float a, float b, float c, float d, float t)

Parameters

NameTypeDescription
afloatcoordinate of first control point
bfloatcoordinate of first point
cfloatcoordinate of second point
dfloatcoordinate of second control point
tfloatvalue between 0 and 1

Returns

float

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...