fixed equation to calculate asin of angle