Vector2.toString()

Return a string containing values of each axis (x = 1; y = 1)

Parameters

None

Return value

String

The vector exported as a string

Usage

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

let vector1 = new Vector2(1,1);
console.log(vector1.toString()); //(x = 1; y = 1)