If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Course: Unlisted resources area > Unit 2

Lesson 1: ProcessingJS documentation

curveTangent(a, b, c, d, t)

Calculates the tangent of a point on a curve. The parameter t varies between 0 and 1, a and d are points on the curve, and b and c are the control points. This can be done once with the x coordinates and a second time with the y coordinates to get the tangent of a curve at t. There is a good definition of "tangent" on Wikipedia.
Parameters:
NameDescription
athe coordinate of the first point
bthe coordinate of the first control point
cthe coordinate of the second control point
dthe coordinate of the second point
tthe a value between 0 and 1

Want to join the conversation?

No posts yet.