updated xgmath (aabb2, ptr init)