Home > @jsplumbtoolkit/browser-ui > boxIntersection
boxIntersection() function
Calculates all intersections of the given box with the given curve.
Signature:
export declare function boxIntersection(x: number, y: number, w: number, h: number, curve: Curve): Array<PointXY>;
Parameters
Parameter | Type | Description |
---|---|---|
x | number | X position of top left corner of box |
y | number | Y position of top left corner of box |
w | number | width of box |
h | number | height of box |
curve | Curve |
Returns:
Array<PointXY>
Array of intersecting points.