Pass parameters by const reference rather than by value

This commit is contained in:
Paul Cornett
2019-04-05 09:18:07 -07:00
parent d52acfe469
commit 365759753a
8 changed files with 17 additions and 17 deletions

View File

@@ -52,7 +52,7 @@ double MyDistance(const myVec3& v1, const myVec3& v2)
}
// Angle between two normalized vectors, in radians
double AngleBetween(myVec3 v1, myVec3 v2)
double AngleBetween(const myVec3& v1, const myVec3& v2)
{
double angle = MyDot(v1, v2);
// Prevent issues due to numerical precision