curveTangent()

Shape / Curves

Description

Calculates the tangent of a point on a Catmull-Rom curve.

Syntax

float curveTangent(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...