Vector2.clone()

Return a new vector identical to this vector

Parameters

None

Return value

Vector2

The new vector

Usage

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

let vector1 = new Vector2(2,2);
let vector2 = vector1.clone();
console.log(vector2); //(2,2)