dot method

double dot(
  1. Vector3 b
)

Implementation

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