Home > @jsplumb/connector-bezier > gradientAtPoint
#
gradientAtPoint() functionCalculates the gradient at the point on the given curve at the given location
Signature:
export declare function gradientAtPoint(curve: Curve, location: number): number;
#
ParametersParameter | Type | Description |
---|---|---|
curve | Curve | |
location | number |
Returns:
number
a decimal between 0 and 1 inclusive.