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