Skip to content

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);

Released under the MIT License.