lib/util.js
function getLengthAngle(x1, x2, y1, y2) {
  var xDiff = x2 - x1;

  var yDiff = y2 - y1;

  return {
    length: Math.ceil(Math.sqrt(xDiff * xDiff + yDiff * yDiff)),
    angle: Math.round(Math.atan2(yDiff, xDiff) * 180 / Math.PI)
  };
}
function getLengthAngle(x1, x2, y1, y2) {
  var xDiff = x2 - x1;

  var yDiff = y2 - y1;

  return {
    length: Math.ceil(Math.sqrt(xDiff * xDiff + yDiff * yDiff)),
    angle: Math.round(Math.atan2(yDiff, xDiff) * 180 / Math.PI)
  };
}
function getLengthAngle ( x1 , x2 , y1 , y2 ) { var xDiff = x2 - x1 ; var yDiff = y2 - y1 ; return { length : Math . ceil ( Math . sqrt ( xDiff * xDiff + yDiff * yDiff ) ) , angle : Math . round ( Math . atan2 ( yDiff , xDiff ) * 180 / Math . PI ) } ; }
return height and angle for lines
return height and angle for lines