Py5Graphics.curve_tangent()#
Calculates the tangent of a point on a curve.
Description#
Calculates the tangent of a point on a curve. There’s a good definition of tangent on Wikipedia.
This method is the same as curve_tangent() but linked to a Py5Graphics
object. To see example code for how it can be used, see curve_tangent().
Underlying Processing method: PGraphics.curveTangent
Signatures#
curve_tangent(
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
/,
) -> float
Updated on March 06, 2023 02:49:26am UTC