js/bonus.js
/**
 * converts the arch index into radians in a 180 degree arch
 * @param {number} index the arch index
 * @returns {number} radians
 */
converts the arch index into radians in a 180 degree arch
@param {number} index the arch index
@returns {number} radians
converts the arch index into radians in a 180 degree arch @param { number } index the arch index @returns { number } radians
function archIndexToRadians(index) {
	var angle = index * (180 / 9);
	if (index > 0)
		angle -= 0.5 * (180 / 9)
	angle = -angle - 90;
	return Math.PI * (angle / 180);
}
function archIndexToRadians ( index ) { var angle = index * ( 180 / 9 ) ; if ( index > 0 ) angle -= 0.5 * ( 180 / 9 ) angle = - angle - 90 ; return Math . PI * ( angle / 180 ) ; }
converts the arch index into radians in a 180 degree arch
 @param {number} index the arch index
 @returns {number} radians
converts the arch index into radians in a 180 degree arch @param { number } index the arch index @returns { number } radians