|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
23 #include "../core_global.h"
27 #define RMATRIX_TOLERANCE 1.0e-8
45 static RMatrix createIdentity2x2();
46 static RMatrix createIdentity3x3();
47 static RMatrix createIdentity(
int size);
48 static RMatrix createRotation(
double angle);
49 static RMatrix create2x2(
double a11,
double a12,
50 double a21,
double a22);
51 static RMatrix create3x3(
double a11,
double a12,
double a13,
52 double a21,
double a22,
double a23,
53 double a31,
double a32,
double a33);
54 static RMatrix create3x1(
double a11,
double a21,
double a31);
55 static RMatrix create2x3(
double a11,
double a12,
double a13,
56 double a21,
double a22,
double a23);
65 bool operator ==(
const RMatrix& other)
const;
79 RMatrix multiplyWith(
double w)
const;
85 double* operator [](
int i);
87 void init(
int r,
int c);
91 void set3x3(
double a11,
double a12,
double a13,
92 double a21,
double a22,
double a23,
93 double a31,
double a32,
double a33);
94 void set3x1(
double a11,
double a21,
double a31);
95 void set2x3(
double a11,
double a12,
96 double a13,
double a21,
97 double a22,
double a23);
99 void set(
int r,
int c,
double v);
100 double get(
int r,
int c)
const;
121 bool isRotationAndUniformScale()
const;
122 double getUniformScaleFactor()
const;
123 double getRotationAngle()
const;
126 bool ref(
int startRow);
127 void multiplyRow(
int r,
double factor);
128 void addRow(
int r,
double factor,
int r2);
129 void swapRows(
int r1,
int r2);
130 int getPivotRow(
int startRow);
131 int getPivotCol(
int r);
int rows
Definition: RMatrix.h:135
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
int getCols() const
Definition: RMatrix.h:111
int i
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: autostart.js:49
double ** m
Definition: RMatrix.h:134
int getRows() const
Definition: RMatrix.h:105
Q_DECLARE_METATYPE(RMath *)
QCADCORE_EXPORT QDebug operator<<(QDebug dbg, const RMatrix &m)
Stream operator for QDebug.
Definition: RMatrix.cpp:695
Simple matrix class.
Definition: RMatrix.h:36
RMatrix operator*(double factor, const RMatrix &matrix)
Definition: RMatrix.cpp:688
void init(void basePath)
Definition: AddBlockInit.js:2
#define QCADCORE_EXPORT
Definition: core_global.h:10