function radianToDegree(radian) {
  var angle = radian * (180 / Math.PI);

  if (angle < 0) {
    angle = 360 + angle;
  }

  return angle;
}
convert radian to degree

@param {*} radian
@returns {Number} 0..360