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) 311 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.clone3D = void 0; /** * Clone a 3D vector. * @param {ArrayVector3D} xyz - Vector as `[x, y, z]` * @returns {ArrayVector3D} The cloned vector */ const clone3D = (xyz) => [xyz[0], xyz[1], xyz[2]]; exports.clone3D = clone3D;