that's not a valid expression. there are mismatched parantheses.
whoops. I had actually replaced
var newX:Number = -h + d*Math.tan(Math.atan(h/d) + 2*n*angle)
So I only got one extra there. I need two more at the end.
var newX:Number = -h + d*Math.tan(Math.atan(h/d) + 2*n*Math.asin(1/(2*Math.sqrt(d*d + h*h))))
1 person found this helpful
i don't think much can be done with that though this can be used:
if angle were Math.asin(d/Math.sqrt(d*d+h*h)) or Math.asin(h/Math.sqrt(d*d+h*h)) much more could be done.
Thanks I figured it was about as simple as it could be.