UNPKG

pencil.js

Version:

Nice modular interactive 2D drawing library.

14 lines (8 loc) 188 B
# BaseEvent Vector between two point in 2D space. ## Examples ```js import { Vector } from "pencil.js"; const vector = new Vector([10, 20], [30, 40]); console.log(vector.length); ```