UNPKG

react-pixi-plot

Version:

A React component rendering a zoomable and draggable PIXI.js scene. Intended to render 2d plots

5 lines 223 B
/** * A simple distance calculation between two cartesian objects with x and y parameters. */ export const distance = (a, b) => Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2)); //# sourceMappingURL=utils.js.map