dot method

double dot(
  1. Vector3 other
)

Dot product.

Implementation

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