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.

10 lines (9 loc) 271 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.one4D = void 0; /** * Creates a 4D vector with all components set to 1. * @returns {ArrayVector4D} A vector `[1, 1, 1, 1]` */ const one4D = () => [1, 1, 1, 1]; exports.one4D = one4D;