Has anyone played with a TRUE pool ball reaction using actionscript?

I want to know the location of impact on the ball using "hit test" to determine the deflect angle.

Creating an octagon shape (or more sides) w/ independent sides is one of my ideas, does anyone have a better, one more mathematically accurate.

I would like to place this actionscript on an object and have it react to other objects with the same script.

This is the first time I have used Trig in a long time.