Skip to content

pymath.eval_bezier_deriv

Daniel Flassig edited this page Jun 24, 2026 · 1 revision

Evaluates the derivative of a Bézier curve at parameter t (its tangent).

result = pymath.eval_bezier_deriv(t, p1, p2 [, p3, ...])
Parameter Type Description
t number Curve parameter, typically in [0, 1].
p1, p2, ... number or point The control points (at least two), as for pymath.eval_bezier.

Return value

Type Description
result The derivative dC/dt at t: a number for scalar control points, or a vector of the same dimension for point control points.

Notes:

  • Same conventions as pymath.eval_bezier; only the curve's derivative is returned.
  • For control points defining a curve of degree n - 1, the derivative is a Bézier curve of degree n - 2.

Example:

-- the tangent of a straight segment is constant
local d = pymath.eval_bezier_deriv(0.5, {0, 0}, {1, 2})
-- d == {1, 2}

Version Support:

Minimum PYTHA Version: V27

See also:

pymath, pymath.eval_bezier

Clone this wiki locally