Add operator [] for Vec3.