Updating code for correct homogeneous projection