Changed distance parameter to represent the distance of the plane from the origin along the plane normal