mirror of
https://github.com/okalachev/flix.git
synced 2026-02-17 15:41:32 +00:00
Implement rotate method for quaternions as replace for multiplication
Vector rotating method is renamed from `rotate` to `rotateVector` to avoid inconsistent object and argument order in different `rotate` methods
This commit is contained in:
@@ -115,8 +115,8 @@ void controlAttitude() {
|
||||
}
|
||||
|
||||
const Vector up(0, 0, 1);
|
||||
Vector upActual = attitude.rotate(up);
|
||||
Vector upTarget = attitudeTarget.rotate(up);
|
||||
Vector upActual = attitude.rotateVector(up);
|
||||
Vector upTarget = attitudeTarget.rotateVector(up);
|
||||
|
||||
Vector error = Vector::angularRatesBetweenVectors(upTarget, upActual);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user