UNPKG

@fimbul-works/vec

Version:

A comprehensive TypeScript vector math library providing 2D, 3D, and 4D vector operations with a focus on performance and type safety.

12 lines (11 loc) 443 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isEqual2D = void 0; /** * Checks if two 2D vectors are equal. * @param {ArrayVector2D} xy1 - First vector as `[x, y]` * @param {ArrayVector2D} xy2 - Second vector as `[x, y]` * @returns {boolean} `true` if the vectors are equal, `false` otherwise */ const isEqual2D = (xy1, xy2) => xy1[0] === xy2[0] && xy1[1] === xy2[1]; exports.isEqual2D = isEqual2D;