масштабировать вектор

/**
 * @function scaleVector
 * @param {Vector} vector 
 * @param {number} scale 
 * @returns {Vector}
 * @description Scales a vector by a factor
 */
export function scaleVector(vector: Vector, scale: number): Vector {
    return new Vector(vector.x * scale, vector.y * scale)
}
Himanshu Jangid