A Vec2 is a Vec3 optimized for working in a plane. As such, they have an always-zero z component.

import { Vec2 } from '@js-draw/math';
console.log(Vec2.of(1, 2));

Index

Variables

Functions

Generated using TypeDoc

OpenSource licenses