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