mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 00:03:33 +08:00
Added scalar to matrix conversion.
This commit is contained in:
@@ -49,6 +49,12 @@ public:
|
||||
return _value;
|
||||
}
|
||||
|
||||
operator Matrix<Type, 1, 1>() const {
|
||||
Matrix<Type, 1, 1> m;
|
||||
m(0, 0) = _value;
|
||||
return m;
|
||||
}
|
||||
|
||||
private:
|
||||
Type _value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user