Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/Three.d.ts>Vector4#fromArray

A simple transformation of three.js for use within a Deno workflow
Go to Latest
method Vector4.prototype.fromArray
Re-export
import { Vector4 } from "https://deno.land/x/threejs_4_deno@v121/src/Three.d.ts";

Sets this vector's x, y, z and w value from the provided array.

Parameters

array: number[]

the source array.

optional
offset: number

(optional) offset into the array. Default is 0.

Sets this vector's x, y, z and w value from the provided array-like.

Parameters

array: ArrayLike<number>

the source array-like.

optional
offset: number

(optional) offset into the array-like. Default is 0.