mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #396 remove obsolete Matrix and Vector classes
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
* 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/. */
|
||||
|
||||
#include "samplesvectormatrix.h"
|
||||
#include "samplesgeo.h"
|
||||
#include "samplesgeodetictoecef.h"
|
||||
#include <QCoreApplication>
|
||||
@@ -17,7 +16,6 @@
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QCoreApplication a(argc, argv);
|
||||
BlackMiscTest::CSamplesVectorMatrix::samples();
|
||||
BlackMiscTest::CSamplesGeo::samples();
|
||||
BlackMiscTest::CSamplesGeodeticToEcef::samples();
|
||||
return a.exec();
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
#include "samplesvectormatrix.h"
|
||||
|
||||
using namespace BlackMisc::Math;
|
||||
|
||||
/*
|
||||
* Run the samples
|
||||
*/
|
||||
int BlackMiscTest::CSamplesVectorMatrix::samples()
|
||||
{
|
||||
CVector3D v1;
|
||||
CVector3D v2(1, 2, 3);
|
||||
qDebug() << v1 << "value:" << v2[2] << v2.length();
|
||||
qDebug() << v2 << (2 * v1);
|
||||
|
||||
CMatrix3x3 m;
|
||||
CMatrix3x3 mr = m;
|
||||
qDebug() << m << mr;
|
||||
bool im;
|
||||
CMatrix3x3 mi = mr.inverse(im);
|
||||
CMatrix3x3 mid = mr * mi;
|
||||
qDebug() << mr << mi << mid << im;
|
||||
|
||||
// bye
|
||||
qDebug() << "-----------------------------------------------";
|
||||
return 0;
|
||||
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
#ifndef BLACKMISCTEST_SAMPLESVECTORMATRIX_H
|
||||
#define BLACKMISCTEST_SAMPLESVECTORMATRIX_H
|
||||
|
||||
#include "blackmisc/mathvector3d.h"
|
||||
#include "blackmisc/mathmatrix3x3.h"
|
||||
|
||||
namespace BlackMiscTest
|
||||
{
|
||||
|
||||
/*!
|
||||
* \brief Samples for vector / matrix
|
||||
*/
|
||||
class CSamplesVectorMatrix
|
||||
{
|
||||
public:
|
||||
/*!
|
||||
* \brief Run the samples
|
||||
*/
|
||||
static int samples();
|
||||
|
||||
private:
|
||||
/*!
|
||||
* \brief Avoid init
|
||||
*/
|
||||
CSamplesVectorMatrix();
|
||||
};
|
||||
} // namespace
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user