ActionScript 3.0 geometry objects and math