I have a right Triangle, the opposite length = stage.stageWidth and the adjacent length = stage.stageHeight.
There is a stage resize, and i want another object (rectangle) to be perpendicular to the hypotenuse.
From this with some trig I can get the β angle of the opposite, and then subtract 90 from this to get the angle of the adjacent. Then subtract that from 180 and it should give me the angle perpendicular to the triangle. Right?
then convert the result into radians.
any help in converting that into AS3 would be great.