dot method

double dot(
  1. Vector b
)

Implementation

double dot(Vector b) => x * b.x + y * b.y + z * b.z;