Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_gui_painting_qtransform.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
5/* wrap non-code snippets
6
7//! [0]
8x' = m11*x + m21*y + dx
9y' = m22*y + m12*x + dy
10if (!isAffine()) {
11 w' = m13*x + m23*y + m33
12 x' /= w'
13 y' /= w'
14}
15//! [0]
16
17
18//! [1]
19x' = m11*x + m21*y + dx
20y' = m22*y + m12*x + dy
21if (!isAffine()) {
22 w' = m13*x + m23*y + m33
23 x' /= w'
24 y' /= w'
25}
26//! [1]
27
28
29//! [2]
30x' = m11*x + m21*y + dx
31y' = m22*y + m12*x + dy
32if (!isAffine()) {
33 w' = m13*x + m23*y + m33
34 x' /= w'
35 y' /= w'
36}
37//! [2]
38
39
40//! [3]
41x' = m11*x + m21*y + dx
42y' = m22*y + m12*x + dy
43if (!isAffine()) {
44 w' = m13*x + m23*y + m33
45 x' /= w'
46 y' /= w'
47}
48//! [3]
49
50*/ // wrap non-code snippets
51} // src_gui_painting_qtransform