Vector3.toArray()

Exports the vector as an array with two values

Parameters

None

Return value

number[]

The vector as an array

Usage

import {Vector3} from '@lcluber/type6js';

let vector1 = new Vector3(1,1,1);
let array = vector1.toArray();
console.log(array); // [1,1,1]