"use strict"; class Calc { constructor(seed) { this.v = seed; } add(n) { this.v += n; return this; } value() { return this.v; } } exports.Calc = Calc; exports.magnitude = (v) => Math.sqrt(v.x * v.x + v.y * v.y); exports.origin = { x: 0, y: 0 };