function asteroidVertices(count, rad) {
  var p = [];
  for (var i = 0; i < count; i++) {
    p[i] = {
      x: (-Math.sin((360 / count) * i * Math.PI / 180) + Math.round(Math.random() * 2 - 1) * Math.random() / 3) * rad,
      y: (-Math.cos((360 / count) * i * Math.PI / 180) + Math.round(Math.random() * 2 - 1) * Math.random() / 3) * rad
    };
  }
  return p;
}
/**
 * Generates vertices for asteroid polygon with certain count and radius
 * @param  {Number} count 	Number of vertices
 * @param  {Number} rad   	Maximal radius of polygon
 * @return {Array}       	Array of vertices: {x: Number, y: Number}
 */
Generates vertices for asteroid polygon with certain count and radius
@param  {Number} count       Number of vertices
@param  {Number} rad         Maximal radius of polygon
@return {Array}              Array of vertices: {x: Number, y: Number}
Generates vertices for asteroid polygon with certain count and radius @param { Number } count Number of vertices @param { Number } rad Maximal radius of polygon @return { Array } Array of vertices : { x : Number y : Number }
function asteroidVertices(count, rad) {
  var p = [];
  for (var i = 0; i < count; i++) {
    p[i] = {
      x: (-Math.sin((360 / count) * i * Math.PI / 180) + Math.round(Math.random() * 2 - 1) * Math.random() / 3) * rad,
      y: (-Math.cos((360 / count) * i * Math.PI / 180) + Math.round(Math.random() * 2 - 1) * Math.random() / 3) * rad
    };
  }
  return p;
}
function asteroidVertices ( count , rad ) { var p = [ ] ; for ( var i = 0 ; i < count ; i ++ ) { p [ i ] = { x : ( - Math . sin ( ( 360 / count ) * i * Math . PI / 180 ) + Math . round ( Math . random ( ) * 2 - 1 ) * Math . random ( ) / 3 ) * rad , y : ( - Math . cos ( ( 360 / count ) * i * Math . PI / 180 ) + Math . round ( Math . random ( ) * 2 - 1 ) * Math . random ( ) / 3 ) * rad } ; } return p ; }
Generates vertices for asteroid polygon with certain count and radius
 @param  {Number} count       Number of vertices
 @param  {Number} rad         Maximal radius of polygon
 @return {Array}              Array of vertices: {x: Number, y: Number}
Generates vertices for asteroid polygon with certain count and radius @param { Number } count Number of vertices @param { Number } rad Maximal radius of polygon @return { Array } Array of vertices : { x : Number y : Number }