code: public static double dotProduct(double[] pointA) {
  		double product = 0.0;
  		for (int i = 0; i < pointA.length; i++) {
  			product += pointA[i] * pointA[i];
  		}
  		return product;
  	}
docs: Calculates the dot product of the point with itself.
  
  @param pointA
  point
  @return the dot product