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) 401 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromObject3D = void 0; /** * Creates an ArrayVector3D from an object with x, y and z properties. * @param {{ x: number; y: number; z: number }} vector3D - Object with x, y and z properties * @returns {ArrayVector3D} Vector */ const fromObject3D = ({ x, y, z }) => [x, y, z]; exports.fromObject3D = fromObject3D;