by setting y to 0, i suppose you don't mean a projection of the line in x-z plane. Do you want to preserve the length?