mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 00:51:35 +08:00
Removed all use of C library from the matrix namespace
This commit is contained in:
committed by
James Goppert
parent
552dad40a1
commit
9ebf5f89db
@@ -76,9 +76,9 @@ public:
|
||||
Vector<Type, 3>()
|
||||
{
|
||||
AxisAngle &v = *this;
|
||||
Type ang = Type(2.0f)*acosf(q(0));
|
||||
Type mag = sinf(ang/2.0f);
|
||||
if (fabsf(mag) > 0) {
|
||||
Type ang = Type(2.0f)*acos(q(0));
|
||||
Type mag = sin(ang/2.0f);
|
||||
if (fabs(mag) > 0) {
|
||||
v(0) = ang*q(1)/mag;
|
||||
v(1) = ang*q(2)/mag;
|
||||
v(2) = ang*q(3)/mag;
|
||||
|
||||
Reference in New Issue
Block a user