fixed comparing squared distances to plain distances in pt_triplane