Refactored Vector3d structure