Modification to 2dRenderer

Function to calculate the xy coordinate based on the ijk coordinates of
the point.