function polygonPoints(n_sides, magnitude) {
    var coordinates = getCoordinates(n_sides);
    var Points = '';

    coordinates.forEach(function (P) {
        Points += parseInt(Math.round((P[0] + 1)*magnitude)) + ',' + parseInt(Math.round((P[1] + 1)*magnitude)) + ' ';
    });

    return Points;
}
/**
 * Creates the points attribute for an SVG <polygon>
 *
 * @param n_sides Number of sides the polygon has
 * @param magnitude The size of the shape
 * @returns {string}
 */
Creates the points attribute for an SVG 
@param n_sides Number of sides the polygon has
@param magnitude The size of the shape
@returns {string}
Creates the points attribute for an SVG @param n_sides Number of sides the polygon has @param magnitude The size of the shape @returns { string }
function polygonPoints(n_sides, magnitude) {
    var coordinates = getCoordinates(n_sides);
    var Points = '';
    coordinates.forEach(function (P) {
        Points += parseInt(Math.round((P[0] + 1)*magnitude)) + ',' + parseInt(Math.round((P[1] + 1)*magnitude)) + ' ';
    });
    return Points;
}
function polygonPoints ( n_sides , magnitude ) { var coordinates = getCoordinates ( n_sides ) ; var Points = '' ; coordinates . forEach ( function ( P ) { Points += parseInt ( Math . round ( ( P [ 0 ] + 1 ) * magnitude ) ) + ',' + parseInt ( Math . round ( ( P [ 1 ] + 1 ) * magnitude ) ) + ' ' ; } ) ; return Points ; }
Creates the points attribute for an SVG <polygon>
 @param n_sides Number of sides the polygon has
 @param magnitude The size of the shape
 @returns {string}
Creates the points attribute for an SVG <polygon > @param n_sides Number of sides the polygon has @param magnitude The size of the shape @returns { string }