Obsolete Members for QMatrix4x4
类QMatrix4x4 的以下成员已被弃用。提供这些成员是为了保持旧源代码的正常运行。我们强烈建议不要在新代码中使用它们。
公共函数
(deprecated) void | flipCoordinates() |
相关非成员
(deprecated in 6.1) QPoint | operator*(const QMatrix4x4 &matrix, const QPoint &point) |
(deprecated in 6.1) QPointF | operator*(const QMatrix4x4 &matrix, const QPointF &point) |
(deprecated in 6.1) QVector3D | operator*(const QMatrix4x4 &matrix, const QVector3D &vector) |
(deprecated in 6.1) QVector3D | operator*(const QVector3D &vector, const QMatrix4x4 &matrix) |
成员函数文档
[deprecated]
void QMatrix4x4::flipCoordinates()
该函数已被弃用。我们强烈建议不要在新代码中使用它。
通过将 y 坐标和 z 坐标乘以-1,在右手坐标系和左手坐标系之间翻转。该函数通常用于创建左手正交视图,而无需像ortho() 那样缩放视口。
另请参阅 ortho()。
相关非会员
[deprecated in 6.1]
QPoint operator*(const QMatrix4x4 &matrix, const QPoint &point)
自 6.1 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
请使用QMatrix4x4::map() 代替。
返回根据matrix 对point 进行变换后的结果,并在点前应用矩阵。
[deprecated in 6.1]
QPointF operator*(const QMatrix4x4 &matrix, const QPointF &point)
自 6.1 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
请使用QMatrix4x4::map() 代替。
返回根据matrix 对point 进行变换后的结果,并在点前应用矩阵。
[deprecated in 6.1]
QVector3D operator*(const QMatrix4x4 &matrix, const QVector3D &vector)
自 6.1 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
请使用QMatrix4x4::map() 代替。
返回根据matrix 对vector 进行变换的结果,其中应用了矩阵预向量。向量转换为投影点。
[deprecated in 6.1]
QVector3D operator*(const QVector3D &vector, const QMatrix4x4 &matrix)
自 6.1 版起,该函数已被弃用。我们强烈建议不要在新代码中使用该函数。
将QVector3D 转换为以 1.0 为 w 坐标的QVector4D ,然后相乘。
返回根据matrix 对vector 进行转换的结果,并在向量后应用矩阵。矢量转换为一个点。
© 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.