mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
/* Copyright (C) 2013
|
|
* swift Project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
|
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
|
* contained in the LICENSE file.
|
|
*/
|
|
|
|
//! \file
|
|
|
|
#ifndef BLACKMISC_POSMATRIX1x3_H
|
|
#define BLACKMISC_POSMATRIX1x3_H
|
|
|
|
#include "blackmisc/mathmatrixbase.h"
|
|
#include "blackmisc/mathvector3d.h"
|
|
|
|
namespace BlackMisc
|
|
{
|
|
namespace Math
|
|
{
|
|
|
|
//! Matrix 1x3
|
|
class CMatrix1x3 : public CValueObjectStdTuple<CMatrix1x3, CMatrixBase<CMatrix1x3, 1, 3>>
|
|
{
|
|
public:
|
|
|
|
//! Constructor
|
|
CMatrix1x3() = default;
|
|
|
|
//! Init by fill value
|
|
explicit CMatrix1x3(double fillValue) : CValueObjectStdTuple(fillValue) {}
|
|
|
|
//! Constructor
|
|
CMatrix1x3(double c1, double c2, double c3)
|
|
{
|
|
this->m_matrix(0, 0) = c1;
|
|
this->m_matrix(0, 1) = c2;
|
|
this->m_matrix(0, 2) = c3;
|
|
}
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
Q_DECLARE_METATYPE(BlackMisc::Math::CMatrix1x3)
|
|
|
|
#endif // guard
|