mirror of
https://github.com/okalachev/flix.git
synced 2025-08-17 17:16:10 +00:00
Make Vector methods arguments more consistent
This commit is contained in:
@@ -78,10 +78,10 @@ public:
|
||||
return acos(constrain(dot(a, b) / (a.norm() * b.norm()), -1, 1));
|
||||
}
|
||||
|
||||
static Vector angularRatesBetweenVectors(const Vector& u, const Vector& v) {
|
||||
Vector direction = cross(u, v);
|
||||
static Vector angularRatesBetweenVectors(const Vector& a, const Vector& b) {
|
||||
Vector direction = cross(a, b);
|
||||
direction.normalize();
|
||||
float angle = angleBetweenVectors(u, v);
|
||||
float angle = angleBetweenVectors(a, b);
|
||||
return direction * angle;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user