dot method

double dot (Vector2 other)

Inner product.

Implementation

double dot(Vector2 other) {
  final Float64List otherStorage = other._v2storage;
  double sum;
  sum = _v2storage[0] * otherStorage[0];
  sum += _v2storage[1] * otherStorage[1];
  return sum;
}