Creates a Vec2 from an x and y coordinate.

import { Vec2 } from '@js-draw/math';
const v = Vec2.of(3, 4); // x=3, y=4.
OpenSource licenses