correct dot product in example

This commit is contained in:
Peter Brady 2020-06-10 16:59:02 -06:00 committed by The Phantom Derpstorm
parent 874c8e5f09
commit 62a831cda7

View File

@ -17,7 +17,7 @@ struct vec {
};
double dot(const vec& left, const vec& right) {
return left.x * right.x + left.x * right.x;
return left.x * right.x + left.y * right.y;
}
vec operator+(const vec& left, const vec& right) {