Skip to main content

Home > @jsplumbtoolkit/browser-ui > gradientAtPoint

gradientAtPoint() function

Calculates the gradient at the point on the given curve at the given location

Signature:

export declare function gradientAtPoint(curve: Curve, location: number): number;

Parameters

ParameterTypeDescription
curveCurve
locationnumber

Returns:

number

a decimal between 0 and 1 inclusive.