forked from: Bezier3D in pure AS3

