Py5Graphics.bezier_tangent()
Contents
Py5Graphics.bezier_tangent()¶
Calculates the tangent of a point on a Bezier curve.
Description¶
Calculates the tangent of a point on a Bezier curve. There is a good definition of tangent on Wikipedia.
This method is the same as bezier_tangent() but linked to a Py5Graphics
object. To see example code for how it can be used, see bezier_tangent().
Underlying Processing method: PGraphics.bezierTangent
Syntax¶
bezier_tangent(a: float, b: float, c: float, d: float, t: float, /) -> float
Parameters¶
a: float - coordinate of first point on the curve
b: float - coordinate of first control point
c: float - coordinate of second control point
d: float - coordinate of second point on the curve
t: float - value between 0 and 1
Updated on November 12, 2021 11:30:58am UTC