dot method

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

Implementation

@override
double dot(Vector v) {
  double temp = x * v.x + y * v.y;
  if(v is Vector3){
    temp += z * v.z;
  }
  if(v is Vector4){
    temp += z * v.z;
  }
  return temp;
}