here you assume z may not be given in x-y coordinate systems, which is reasonable. How about x-z case? I would assume y may not be given and its default value is zero.