Files
Aislo/B07_wf4_DesignDetail/openwebcad/src/helpers/is-point-equal.ts
T
2026-07-19 17:01:48 +09:00

10 lines
268 B
TypeScript

import type { Point } from '@flatten-js/core';
import { EPSILON } from '../App.consts';
export function isPointEqual(point1: Point, point2: Point): boolean {
return (
Math.abs(point1.x - point2.x) < EPSILON &&
Math.abs(point1.y - point2.y) < EPSILON
);
}