QGenericMatrix Class
template <int N, int M, typename T> class QGenericMatrixQGenericMatrix クラスは、N 列 M 行の NxM 変換行列を表すテンプレート・クラスです。詳細...
ヘッダー | #include <QGenericMatrix> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
- 継承メンバを含む全メンバ一覧
- QGenericMatrix は、Painting ClassesおよびRendering in 3D に含まれています。
パブリック関数
QGenericMatrix() | |
QGenericMatrix(const T *values) | |
const T * | constData() const |
void | copyDataTo(T *values) const |
T * | data() |
const T * | data() const |
void | fill(T value) |
bool | isIdentity() const |
void | setToIdentity() |
QGenericMatrix<M, N, T> | transposed() const |
bool | operator!=(const QGenericMatrix<N, M, T> &other) const |
T & | operator()(int row, int column) |
const T & | operator()(int row, int column) const |
QGenericMatrix<N, M, T> & | operator*=(T factor) |
QGenericMatrix<N, M, T> & | operator+=(const QGenericMatrix<N, M, T> &other) |
QGenericMatrix<N, M, T> & | operator-=(const QGenericMatrix<N, M, T> &other) |
QGenericMatrix<N, M, T> & | operator/=(T divisor) |
bool | operator==(const QGenericMatrix<N, M, T> &other) const |
関連する非メンバー
QMatrix2x2 | |
QMatrix2x3 | |
QMatrix2x4 | |
QMatrix3x2 | |
QMatrix3x3 | |
QMatrix3x4 | |
QMatrix4x2 | |
QMatrix4x3 | |
QGenericMatrix<N, M, T> | operator*(T factor, const QGenericMatrix<N, M, T> &matrix) |
QGenericMatrix<M1, M2, TT> | operator*(const QGenericMatrix<NN, M2, TT> &m1, const QGenericMatrix<M1, NN, TT> &m2) |
QGenericMatrix<N, M, T> | operator*(const QGenericMatrix<N, M, T> &matrix, T factor) |
QGenericMatrix<N, M, T> | operator+(const QGenericMatrix<N, M, T> &m1, const QGenericMatrix<N, M, T> &m2) |
QGenericMatrix<N, M, T> | operator-(const QGenericMatrix<N, M, T> &m1, const QGenericMatrix<N, M, T> &m2) |
QGenericMatrix<N, M, T> | operator-(const QGenericMatrix<N, M, T> &matrix) |
QGenericMatrix<N, M, T> | operator/(const QGenericMatrix<N, M, T> &matrix, T divisor) |
QDataStream & | operator<<(QDataStream &stream, const QGenericMatrix<N, M, T> &matrix) |
QDataStream & | operator>>(QDataStream &stream, QGenericMatrix<N, M, T> &matrix) |
QMatrix4x4も参照 。
メンバ関数のドキュメント
QGenericMatrix::QGenericMatrix()
NxM の単位行列を作成します。
[explicit]
QGenericMatrix::QGenericMatrix(const T *values)
与えられた N * M 浮動小数点型values から行列を構築する.配列values の内容は,行長順であると仮定される。
copyDataTo()も参照 。
const T *QGenericMatrix::constData() const
この行列の生データへの定数ポインタを返します。
data()も参照 。
void QGenericMatrix::copyDataTo(T *values) const
この行列の N * M 個の項目を取得し,行の長さ順にvalues にコピーする.
T *QGenericMatrix::data()
この行列の生データへのポインタを返します。
constData()も参照 。
const T *QGenericMatrix::data() const
この行列の生データへの定数ポインタを返します。
constData()も参照 。
void QGenericMatrix::fill(T value)
この行列のすべての要素をvalue で埋める。
bool QGenericMatrix::isIdentity() const
この行列が恒等式である場合にtrue
を返し、そうでない場合に false を返す。
setToIdentity()も参照 。
void QGenericMatrix::setToIdentity()
この行列を恒等式に設定します。
isIdentity()も参照 。
QGenericMatrix<M, N, T> QGenericMatrix::transposed() const
この行列を対角に対して転置して返します。
bool QGenericMatrix::operator!=(const QGenericMatrix<N, M, T> &other) const
この行列がother と同一でない場合はtrue
を返し,そうでない場合は false を返す.
T &QGenericMatrix::operator()(int row, int column)
この行列の位置 (row,column) にある要素への参照を返し、その要素を代入できるようにします。
const T &QGenericMatrix::operator()(int row, int column) const
この行列の位置 (row,column) にある要素への定数参照を返します。
QGenericMatrix<N, M, T> &QGenericMatrix::operator*=(T factor)
この行列のすべての要素にfactor を掛ける。
QGenericMatrix<N, M, T> &QGenericMatrix::operator+=(const QGenericMatrix<N, M, T> &other)
other の内容をこの行列に追加する。
QGenericMatrix<N, M, T> &QGenericMatrix::operator-=(const QGenericMatrix<N, M, T> &other)
この行列からother の内容を引く。
QGenericMatrix<N, M, T> &QGenericMatrix::operator/=(T divisor)
この行列のすべての要素をdivisor で割る。
bool QGenericMatrix::operator==(const QGenericMatrix<N, M, T> &other) const
この行列がother と同一であればtrue
を返し,そうでなければ false を返す.
関連する非会員
QMatrix2x2
QMatrix2x2 型は、QGenericMatrix テンプレートの便利なインスタンス化を定義するもので、2 列、2 行、要素型は float です。
QMatrix2x3
QMatrix2x3 型は、QGenericMatrix テンプレートの便利なインスタンス化を定義するもので、2 列、3 行、要素型は float です。
QMatrix2x4
QMatrix2x4 型は、QGenericMatrix テンプレートの便利なインスタンス化を定義するもので、2 列、4 行、要素型は float です。
QMatrix3x2
QMatrix3x2 型は、QGenericMatrix テンプレートの便利なインスタンス化を定義するもので、3 列、2 行、要素型は float です。
QMatrix3x3
QMatrix3x3 型は、QGenericMatrix テンプレートの便利なインスタンス化を定義するもので、3 列、3 行、要素型は float です。
QMatrix3x4
QMatrix3x4 型は、QGenericMatrix テンプレートの便利なインスタンス化を定義するもので、3 列、4 行、要素型は float です。
QMatrix4x2
QMatrix4x2 型は、QGenericMatrix テンプレートの便利なインスタンス化を定義するもので、4 列、2 行、要素型は float です。
QMatrix4x3
QMatrix4x3 型は、QGenericMatrix テンプレートの便利なインスタンス化を定義するもので、4 列、3 行、要素型は float です。
template <int N, int M, typename T> QGenericMatrix<N, M, T> operator*(T factor, const QGenericMatrix<N, M, T> &matrix)
matrix の全要素にfactor を掛けた結果を返す。
template <int NN, int M1, int M2, typename TT> QGenericMatrix<M1, M2, TT> operator*(const QGenericMatrix<NN, M2, TT> &m1, const QGenericMatrix<M1, NN, TT> &m2)
NNxM2 行列m1 と M1xNN 行列m2 の積を返し,M1xM2 行列の結果を生成する.
template <int N, int M, typename T> QGenericMatrix<N, M, T> operator*(const QGenericMatrix<N, M, T> &matrix, T factor)
matrix の全要素にfactor を掛けた結果を返す。
template <int N, int M, typename T> QGenericMatrix<N, M, T> operator+(const QGenericMatrix<N, M, T> &m1, const QGenericMatrix<N, M, T> &m2)
m1 とm2 の和を返す。
template <int N, int M, typename T> QGenericMatrix<N, M, T> operator-(const QGenericMatrix<N, M, T> &m1, const QGenericMatrix<N, M, T> &m2)
m1 とm2 の差を返す。
template <int N, int M, typename T> QGenericMatrix<N, M, T> operator-(const QGenericMatrix<N, M, T> &matrix)
これはオーバーロードされた関数である。
matrix の否定を返します。
template <int N, int M, typename T> QGenericMatrix<N, M, T> operator/(const QGenericMatrix<N, M, T> &matrix, T divisor)
matrix の全要素をdivisor で割った結果を返す。
template <int N, int M, typename T> QDataStream &operator<<(QDataStream &stream, const QGenericMatrix<N, M, T> &matrix)
与えられたstream に与えられたmatrix を書き込み、ストリームへの参照を返します。
Qt データ型のシリアライズも参照してください 。
template <int N, int M, typename T> QDataStream &operator>>(QDataStream &stream, QGenericMatrix<N, M, T> &matrix)
与えられたstream から与えられたmatrix に NxM 行列を読み込み,そのストリームへの参照を返します.
Qt データ型のシリアライズも参照してください 。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.