UNPKG

image-js

Version:

Image processing and manipulation in JavaScript

10 lines 343 B
/** * Compute the distance between point 1 and point 2. * @param point1 - First point. * @param point2 - Second point. * @returns Euclidean distance. */ export function getEuclideanDistance(point1, point2) { return Math.hypot(point1.row - point2.row, point1.column - point2.column); } //# sourceMappingURL=getEuclideanDistance.js.map