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.

13 lines (12 loc) 395 B
import type { ArrayVector4D } from "./types.js"; /** * Creates a 4D vector from an object with x, y, z, w properties. * @param {{ x: number; y: number; z: number; w: number }} obj - Object with x, y, z, w properties * @returns {ArrayVector4D} 4D vector */ export declare const fromObject4D: ({ x, y, z, w }: { x: number; y: number; z: number; w: number; }) => ArrayVector4D;