export function dot(a, b) {
    return a.x * b.x + a.y * b.y;
}
export function add(a, b) {
    return {
        x: a.x + b.x,
        y: a.y + b.y,
    };
}
export function subtract(a, b) {
    return {
        x: a.x - b.x,
        y: a.y - b.y,
    };
}
export function multiply(a, b) {
    return {
        x: a.x * b,
        y: a.y * b,
    };
}
export function multiplyVector(a, b) {
    return {
        x: a.x * b.x,
        y: a.y * b.y,
    };
}
export function divideVector(a, b) {
    return {
        x: a.x / b.x,
        y: a.y / b.y,
    };
}
export function midPoint(a, b) {
    return multiply(add(a, b), 0.5);
}
export function magnitude(v) {
    return Math.sqrt(v.x * v.x + v.y * v.y);
}
export function normalize(v) {
    const mag = magnitude(v);
    return {
        x: v.x / mag,
        y: v.y / mag,
    };
}
export function distance(a, b) {
    return magnitude(subtract(a, b));
}

//# sourceMappingURL=../../../../../_KiCuMountsBPDebug/kicu/mmad/U/Vector2Utils.js.map
