A Vec2 is a Vec3 optimized for working in a plane. As such, they have an always-zero z component.
Vec2
Vec3
z
import { Vec2 } from '@js-draw/math'; console.log(Vec2.of(1, 2));
A
Vec2
is aVec3
optimized for working in a plane. As such, they have an always-zeroz
component.