# Obsolete Members for QMatrix4x4

**The following members of class QMatrix4x4 are obsolete.** They are provided to keep old source code working. We strongly advise against using them in new code.

## Public Functions

`(obsolete) ` void | flipCoordinates() |

## Related Non-Members

`(obsolete) ` QGenericMatrix<N, M, float> | qGenericMatrixFromMatrix4x4(const QMatrix4x4 &matrix) |

`(obsolete) ` QMatrix4x4 | qGenericMatrixToMatrix4x4(const QGenericMatrix<N, M, float> &matrix = ...) |

## Member Function Documentation

### void QMatrix4x4::flipCoordinates()

Flips between right-handed and left-handed coordinate systems by multiplying the y and z co-ordinates by -1. This is normally used to create a left-handed orthographic view without scaling the viewport as ortho() does.

**See also **ortho().

## Related Non-Members

### QGenericMatrix<N, M, float> qGenericMatrixFromMatrix4x4(const QMatrix4x4 &*matrix*)

Returns a NxM generic matrix constructed from the left-most N columns and top-most M rows of *matrix*. If N or M is greater than 4, then the remaining elements are filled with elements from the identity matrix.

**See also **QMatrix4x4::toGenericMatrix().

### QMatrix4x4 qGenericMatrixToMatrix4x4(const QGenericMatrix<N, M, float> &*matrix* = ...)

Returns a 4x4 matrix constructed from the left-most 4 columns and top-most 4 rows of *matrix*. If *matrix* has less than 4 columns or rows, the remaining elements are filled with elements from the identity matrix.

© 2018 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.