line.parallel(distance)

Return a new line which is parallel with this line. The new line is placed distance from this line in clockwise direction.

var line = new g.Line('0 0', '10 0');
line.parallel(10).toString(); // "0@10 10@10"
line.parallel(-5).toString(); // "0@-5 10@-5"