dot method Null safety
- Vector2 other
Inner product.
Implementation
double dot(Vector2 other) {
final otherStorage = other._v2storage;
double sum;
sum = _v2storage[0] * otherStorage[0];
sum += _v2storage[1] * otherStorage[1];
return sum;
}