dot2[1])
            );

            points.push(dot1);
            for (var i = len; i < dis; i += len) {
                y1 = dot1[1] - Math.sqrt((i * i) / (k * k + 1));
                y2 = dot1[1] + Math.sqrt((i * i) / (k * k + 1));
                y3 = dot1[1];
                y = dot1[1] > dot2[1] ? y1 : y2;
                x = dot1[0] - k * (y3 - y);
                points.push([x / scale, y / scale]);
            }
            points.push(dot2);

            return points;
        }

        functio