@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.
16 lines (15 loc) • 430 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromObject4D = void 0;
/**
* 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
*/
const fromObject4D = ({ x, y, z, w }) => [
x,
y,
z,
w,
];
exports.fromObject4D = fromObject4D;