This may not be in the spirit of the question but

If the ultimate goal is to find the distance of point A to the plane formed by P,Q, and R then :

1.PQxPR is a vector perpindicular to this plane

2. d= magnitude of the projection of AP on PQxPR

d= AP*(PQxPR)/|PQxPR|