Basically what I am trying to do is calculate the angle between an origin point and the mouse position.
I have a function which declares an origin and establishes the opposite and adjacent (and therefore you can calculate the hypotenuse) of the triangle.
I then divide the opposite by the hypotenuse to give me the sine of the angle I ma trying to get. I then want to invert this to give me the actual angle, but there is no invert function in BMax?
Does anyone have any suggestions or easier ways to achieve this?
cheers
I have a function which declares an origin and establishes the opposite and adjacent (and therefore you can calculate the hypotenuse) of the triangle.
I then divide the opposite by the hypotenuse to give me the sine of the angle I ma trying to get. I then want to invert this to give me the actual angle, but there is no invert function in BMax?
Does anyone have any suggestions or easier ways to achieve this?
cheers