You can use math::vector::shink() instead of GetIndex