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.

11 lines (10 loc) 382 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isNaN2D = void 0; /** * Checks if a vector has NaN components. * @param {ArrayVector2D} xy - Vector as `[x, y]` * @returns {boolean} `true` if the vector has `NaN` components, `false` otherwise. */ const isNaN2D = (xy) => Number.isNaN(xy[0]) || Number.isNaN(xy[1]); exports.isNaN2D = isNaN2D;