private static double dotProduct ( final double pAX , final double pAY , final double pBX , final double pBY , final double pCX , final double pCY ) { return ( pBX - pAX ) * ( pCX - pAX ) + ( pBY - pAY ) * ( pCY - pAY ) ; }
Compute the dot product AB x AC