UNPKG

image-js

Version:

Image processing and manipulation in JavaScript

12 lines 288 B
/** * Round a point to the nearest integer. * @param point - Point to round. * @returns The rounded point. */ export function roundPoint(point) { return { row: Math.round(point.row), column: Math.round(point.column), }; } //# sourceMappingURL=roundPoint.js.map