mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 07:13:34 +08:00
Added more vector ctors.
This commit is contained in:
+20
-1
@@ -13,13 +13,32 @@
|
|||||||
namespace matrix
|
namespace matrix
|
||||||
{
|
{
|
||||||
|
|
||||||
|
template <typename Type, size_t M>
|
||||||
|
class Vector;
|
||||||
|
|
||||||
template<typename Type>
|
template<typename Type>
|
||||||
class Vector3 : public Vector<Type, 3>
|
class Vector3 : public Vector<Type, 3>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~Vector3() {};
|
virtual ~Vector3() {};
|
||||||
|
|
||||||
Vector3() : Vector<Type, 3>()
|
Vector3() :
|
||||||
|
Vector<Type, 3>()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
Vector3(const Vector<Type, 3> & other) :
|
||||||
|
Vector<Type, 3>(other)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
Vector3(const Matrix<Type, 3, 1> & other) :
|
||||||
|
Vector<Type, 3>(other)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
Vector3(const Type *data_) :
|
||||||
|
Vector<Type, 3>(data_)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user