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) 444 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isNan4D = void 0; /** * Checks if a 4D vector has NaN components. * @param {ArrayVector4D} xyzw - Vector as `[x, y, z, w]` * @returns {boolean} `true` if vector has `NaN` components, `false` otherwise */ const isNan4D = (xyzw) => Number.isNaN(xyzw[0]) || Number.isNaN(xyzw[1]) || Number.isNaN(xyzw[2]) || Number.isNaN(xyzw[3]); exports.isNan4D = isNan4D;