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
Parameter | Type | Description |
---|---|---|
curve | Curve | |
location | number |
Returns:
number
a decimal between 0 and 1 inclusive.