Drawing a shape in xz plane

@prisoner849 Please take a look at this question.

Calculate remaining two points of rectangle from given two points

Is there an easy way to get this done also?