mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Initial structure for refactoring, some conversions still missing. Especially required further test cases.
This commit is contained in:
58
src/blackmisc/mathmatrix1x3.h
Normal file
58
src/blackmisc/mathmatrix1x3.h
Normal file
@@ -0,0 +1,58 @@
|
||||
/* Copyright (C) 2013 VATSIM Community / authors
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#ifndef BLACKMISC_POSMATRIX1x3_H
|
||||
#define BLACKMISC_POSMATRIX1x3_H
|
||||
|
||||
#include "blackmisc/mathmatrixbase.h"
|
||||
#include "blackmisc/mathvector3d.h"
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Math
|
||||
{
|
||||
|
||||
/*!
|
||||
* \brief 3D matrix
|
||||
*/
|
||||
class CMatrix1x3 : public CMatrixBase<CMatrix1x3, 1, 3>
|
||||
{
|
||||
public:
|
||||
/*!
|
||||
* \brief Matrix 1x3
|
||||
*/
|
||||
CMatrix1x3() : CMatrixBase() {}
|
||||
|
||||
/*!
|
||||
* \brief init with value
|
||||
* \param fillValue
|
||||
*/
|
||||
CMatrix1x3(qreal fillValue) : CMatrixBase(fillValue) {}
|
||||
|
||||
/*!
|
||||
* \brief Copy constructor
|
||||
* \param other
|
||||
*/
|
||||
CMatrix1x3(const CMatrix1x3 &otherMatrix) : CMatrixBase(otherMatrix) {}
|
||||
|
||||
/*!
|
||||
* \brief CMatrix 3x1
|
||||
* \param c1
|
||||
* \param c2
|
||||
* \param c3
|
||||
*/
|
||||
CMatrix1x3(qreal c1, qreal c2, qreal c3) : CMatrixBase()
|
||||
{
|
||||
this->m_matrix(0, 0) = c1;
|
||||
this->m_matrix(0, 1) = c2;
|
||||
this->m_matrix(0, 2) = c3;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user