Vector2.origin()

Set the x and y values of this vector to zero

Parameters

None

Return value

Vector2

The vector with its new values

Usage

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

let vector = new Vector2(1,1);
console.log(vector); //(1,1)
vector.origin();
console.log(vector); //(0,0)