dot method

  1. @override
double dot(
  1. Vector v
)
override

Implementation

@override
double dot(Vector v) {
  return x * v.x + y * v.y;
}