Fix another occurrence of d vs dist in plane intersection code.