update 3d math lib