Skip to content

Commit

Permalink
Make Vector methods arguments more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Apr 20, 2024
1 parent fb80b89 commit 24e8569
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flix/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ class Vector : public Printable {
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;
}

Expand Down

0 comments on commit 24e8569

Please sign in to comment.