dot method

double dot(
  1. Vector3 v
)

Calculate the dot product of this vector and v.

Implementation

double dot(Vector3 v) {
  return x * v.x + y * v.y + z * v.z;
}