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.

12 lines (11 loc) 373 B
import type { ArrayVector3D } from "./types.js"; /** * 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 */ export declare const fromObject3D: ({ x, y, z }: { x: number; y: number; z: number; }) => ArrayVector3D;