Vector2.getMaxAxis()

Return the name of the axis with the highest value

Parameters

None

Return value

AxisNames2d

The name of the axis

Usage

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

let vector = new Vector2(1,2);
let maxAxis = vector.getMaxAxis();
console.log(maxAxis); //y