Implemented angles in 4D

getR now calculates radius at runtime using an int representing the number of dimensions to factor in