calculate the angle of the prism.