mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
correct dot product in example
This commit is contained in:
parent
874c8e5f09
commit
62a831cda7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user