mirror of
https://github.com/okalachev/flix.git
synced 2026-02-17 15:41:32 +00:00
Simplify code using angularRatesBetweenVectors
This commit is contained in:
@@ -79,7 +79,10 @@ public:
|
||||
|
||||
static Vector angularRatesBetweenVectors(const Vector& u, const Vector& v)
|
||||
{
|
||||
return cross(u, v);
|
||||
Vector direction = cross(u, v);
|
||||
direction.normalize();
|
||||
float angle = angleBetweenVectors(u, v);
|
||||
return direction * angle;
|
||||
}
|
||||
|
||||
size_t printTo(Print& p) const {
|
||||
|
||||
Reference in New Issue
Block a user