public int dotProduct(IntVector v){
  return x * v.x + y * v.y + z * v.z;
}

public int dotProduct ( IntVector v ) { return x * v . x + y * v . y + z * v . z ; }
calculates the dot product ( or " scalar product " ) of this vector with the vector v .
