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#toArray

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

Returns an array [x, y, z, w], or copies x, y, z and w into the provided array.

Parameters

optional
array: number[]

(optional) array to store the vector to. If this is not provided, a new array will be created.

optional
offset: number

(optional) optional offset into the array.

Returns

number[]

The created or provided array.

Copies x, y, z and w into the provided array-like.

Parameters

array: ArrayLike<number>

array-like to store the vector to.

optional
offset: number

(optional) optional offset into the array-like.

Returns

ArrayLike<number>

The provided array-like.