@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.
9 lines (8 loc) • 369 B
TypeScript
import type { ArrayVector2D } from "./types.js";
/**
* 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
*/
export declare const isEqual2D: (xy1: ArrayVector2D, xy2: ArrayVector2D) => boolean;