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.

8 lines (7 loc) 271 B
import type { ArrayVector2D } from "./types.js"; /** * Checks if a vector is zero. * @param {ArrayVector2D} xy - Vector as `[x, y]` * @returns {boolean} `true` if the vector is zero, `false` otherwise */ export declare const isZero2D: (xy: ArrayVector2D) => boolean;