mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 12:03:33 +08:00
Add helpers based on Slice: row(), col(), xy()
This commit is contained in:
@@ -109,6 +109,16 @@ public:
|
||||
return unit();
|
||||
}
|
||||
|
||||
const Slice<Type, 2, 1, 3, 1> xy() const
|
||||
{
|
||||
return Slice<Type, 2, 1, 3, 1>(0, 0, this);
|
||||
}
|
||||
|
||||
Slice<Type, 2, 1, 3, 1> xy()
|
||||
{
|
||||
return Slice<Type, 2, 1, 3, 1>(0, 0, this);
|
||||
}
|
||||
|
||||
|
||||
Dcm<Type> hat() const { // inverse to Dcm.vee() operation
|
||||
const Vector3 &v(*this);
|
||||
|
||||
Reference in New Issue
Block a user