dot method

double dot(
  1. Offset3D other
)

Implementation

double dot(Offset3D other) => x * other.x + y * other.y + z * other.z;