1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qgenericmatrix.cpp -->
<title>Qt 4.8: QGenericMatrix Class Reference</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="content">
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
</div>
<div class="breadcrumb toolblock">
<ul>
<li class="first"><a href="index.html">Home</a></li>
<!-- Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtgui.html">QtGui</a></li>
<li>QGenericMatrix</li>
</ul>
</div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QGenericMatrix Class Reference</h1>
<!-- $$$QGenericMatrix-brief -->
<p>The QGenericMatrix class is a template class that represents a NxM transformation matrix with N columns and M rows. <a href="#details">More...</a></p>
<!-- @@@QGenericMatrix -->
<pre class="cpp"> <span class="preprocessor">#include <QGenericMatrix></span></pre><p>This class was introduced in Qt 4.6.</p>
<ul>
<li><a href="qgenericmatrix-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QGenericMatrix">QGenericMatrix</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QGenericMatrix-2">QGenericMatrix</a></b> ( const QGenericMatrix<N, M, T> & <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QGenericMatrix-3">QGenericMatrix</a></b> ( const T * <i>values</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const T * </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#constData">constData</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#copyDataTo">copyDataTo</a></b> ( T * <i>values</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> T * </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#data">data</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const T * </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#data-2">data</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#fill">fill</a></b> ( T <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#isIdentity">isIdentity</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#setToIdentity">setToIdentity</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix<M, N, T> </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#transposed">transposed</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-not-eq">operator!=</a></b> ( const QGenericMatrix<N, M, T> & <i>other</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const T & </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-28-29">operator()</a></b> ( int <i>row</i>, int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> T & </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-28-29-2">operator()</a></b> ( int <i>row</i>, int <i>column</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix<N, M, T> & </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2a-eq">operator*=</a></b> ( T <i>factor</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix<N, M, T> & </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2b-eq">operator+=</a></b> ( const QGenericMatrix<N, M, T> & <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix<N, M, T> & </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator--eq">operator-=</a></b> ( const QGenericMatrix<N, M, T> & <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix<N, M, T> & </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2f-eq">operator/=</a></b> ( T <i>divisor</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-eq-eq">operator==</a></b> ( const QGenericMatrix<N, M, T> & <i>other</i> ) const</td></tr>
</table>
<a name="related-non-members"></a>
<h2>Related Non-Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix2x2-typedef">QMatrix2x2</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix2x3-typedef">QMatrix2x3</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix2x4-typedef">QMatrix2x4</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix3x2-typedef">QMatrix3x2</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix3x3-typedef">QMatrix3x3</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix3x4-typedef">QMatrix3x4</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix4x2-typedef">QMatrix4x2</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix4x3-typedef">QMatrix4x3</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix<M1, M2, T> </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2a-20">operator*</a></b> ( const QGenericMatrix<N, M2, T> & <i>m1</i>, const QGenericMatrix<M1, N, T> & <i>m2</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix<N, M, T> </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2a-21">operator*</a></b> ( T <i>factor</i>, const QGenericMatrix<N, M, T> & <i>matrix</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix<N, M, T> </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2a-22">operator*</a></b> ( const QGenericMatrix<N, M, T> & <i>matrix</i>, T <i>factor</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix<N, M, T> </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2b-11">operator+</a></b> ( const QGenericMatrix<N, M, T> & <i>m1</i>, const QGenericMatrix<N, M, T> & <i>m2</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix<N, M, T> </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator--9">operator-</a></b> ( const QGenericMatrix<N, M, T> & <i>m1</i>, const QGenericMatrix<N, M, T> & <i>m2</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix<N, M, T> </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator--21">operator-</a></b> ( const QGenericMatrix<N, M, T> & <i>matrix</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix<N, M, T> </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2f-6">operator/</a></b> ( const QGenericMatrix<N, M, T> & <i>matrix</i>, T <i>divisor</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream & </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-lt-lt-89">operator<<</a></b> ( QDataStream & <i>stream</i>, const QGenericMatrix<N, M, T> & <i>matrix</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream & </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-gt-gt-46">operator>></a></b> ( QDataStream & <i>stream</i>, QGenericMatrix<N, M, T> & <i>matrix</i> )</td></tr>
</table>
<a name="details"></a>
<!-- $$$QGenericMatrix-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QGenericMatrix class is a template class that represents a NxM transformation matrix with N columns and M rows.</p>
<p>The QGenericMatrix template has three parameters:</p>
<table class="generic">
<tr valign="top" class="odd"><td >N</td><td >Number of columns.</td></tr>
<tr valign="top" class="even"><td >M</td><td >Number of rows.</td></tr>
<tr valign="top" class="odd"><td >T</td><td >Element type that is visible to users of the class.</td></tr>
</table>
</div>
<p><b>See also </b><a href="qmatrix4x4.html">QMatrix4x4</a>.</p>
<!-- @@@QGenericMatrix -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGenericMatrix[overload1]$$$QGenericMatrix -->
<h3 class="fn"><a name="QGenericMatrix"></a>QGenericMatrix::<span class="name">QGenericMatrix</span> ()</h3>
<p>Constructs a NxM identity matrix.</p>
<!-- @@@QGenericMatrix -->
<!-- $$$QGenericMatrix$$$QGenericMatrixconstQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="QGenericMatrix-2"></a>QGenericMatrix::<span class="name">QGenericMatrix</span> ( const <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & <i>other</i> )</h3>
<p>Constructs a copy of <i>other</i>.</p>
<!-- @@@QGenericMatrix -->
<!-- $$$QGenericMatrix$$$QGenericMatrixconstT* -->
<h3 class="fn"><a name="QGenericMatrix-3"></a>QGenericMatrix::<span class="name">QGenericMatrix</span> ( const <span class="type">T</span> * <i>values</i> )</h3>
<p>Constructs a matrix from the given N * M floating-point <i>values</i>. The contents of the array <i>values</i> is assumed to be in row-major order.</p>
<p><b>See also </b><a href="qgenericmatrix.html#copyDataTo">copyDataTo</a>().</p>
<!-- @@@QGenericMatrix -->
<!-- $$$constData[overload1]$$$constData -->
<h3 class="fn"><a name="constData"></a>const <span class="type">T</span> * QGenericMatrix::<span class="name">constData</span> () const</h3>
<p>Returns a constant pointer to the raw data of this matrix.</p>
<p><b>See also </b><a href="qgenericmatrix.html#data">data</a>().</p>
<!-- @@@constData -->
<!-- $$$copyDataTo[overload1]$$$copyDataToT* -->
<h3 class="fn"><a name="copyDataTo"></a><span class="type">void</span> QGenericMatrix::<span class="name">copyDataTo</span> ( <span class="type">T</span> * <i>values</i> ) const</h3>
<p>Retrieves the N * M items in this matrix and copies them to <i>values</i> in row-major order.</p>
<!-- @@@copyDataTo -->
<!-- $$$data[overload1]$$$data -->
<h3 class="fn"><a name="data"></a><span class="type">T</span> * QGenericMatrix::<span class="name">data</span> ()</h3>
<p>Returns a pointer to the raw data of this matrix.</p>
<p><b>See also </b><a href="qgenericmatrix.html#constData">constData</a>().</p>
<!-- @@@data -->
<!-- $$$data$$$data -->
<h3 class="fn"><a name="data-2"></a>const <span class="type">T</span> * QGenericMatrix::<span class="name">data</span> () const</h3>
<p>Returns a constant pointer to the raw data of this matrix.</p>
<p><b>See also </b><a href="qgenericmatrix.html#constData">constData</a>().</p>
<!-- @@@data -->
<!-- $$$fill[overload1]$$$fillT -->
<h3 class="fn"><a name="fill"></a><span class="type">void</span> QGenericMatrix::<span class="name">fill</span> ( <span class="type">T</span> <i>value</i> )</h3>
<p>Fills all elements of this matrix with <i>value</i>.</p>
<!-- @@@fill -->
<!-- $$$isIdentity[overload1]$$$isIdentity -->
<h3 class="fn"><a name="isIdentity"></a><span class="type">bool</span> QGenericMatrix::<span class="name">isIdentity</span> () const</h3>
<p>Returns true if this matrix is the identity; false otherwise.</p>
<p><b>See also </b><a href="qgenericmatrix.html#setToIdentity">setToIdentity</a>().</p>
<!-- @@@isIdentity -->
<!-- $$$setToIdentity[overload1]$$$setToIdentity -->
<h3 class="fn"><a name="setToIdentity"></a><span class="type">void</span> QGenericMatrix::<span class="name">setToIdentity</span> ()</h3>
<p>Sets this matrix to the identity.</p>
<p><b>See also </b><a href="qgenericmatrix.html#isIdentity">isIdentity</a>().</p>
<!-- @@@setToIdentity -->
<!-- $$$transposed[overload1]$$$transposed -->
<h3 class="fn"><a name="transposed"></a><span class="type">QGenericMatrix</span><<span class="type">M</span>, <span class="type">N</span>, <span class="type">T</span>> QGenericMatrix::<span class="name">transposed</span> () const</h3>
<p>Returns this matrix, transposed about its diagonal.</p>
<!-- @@@transposed -->
<!-- $$$operator!=[overload1]$$$operator!=constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator-not-eq"></a><span class="type">bool</span> QGenericMatrix::<span class="name">operator!=</span> ( const <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & <i>other</i> ) const</h3>
<p>Returns true if this matrix is not identical to <i>other</i>; false otherwise.</p>
<!-- @@@operator!= -->
<!-- $$$operator()[overload1]$$$operator()intint -->
<h3 class="fn"><a name="operator-28-29"></a>const <span class="type">T</span> & QGenericMatrix::<span class="name">operator()</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns a constant reference to the element at position (<i>row</i>, <i>column</i>) in this matrix.</p>
<!-- @@@operator() -->
<!-- $$$operator()$$$operator()intint -->
<h3 class="fn"><a name="operator-28-29-2"></a><span class="type">T</span> & QGenericMatrix::<span class="name">operator()</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>column</i> )</h3>
<p>Returns a reference to the element at position (<i>row</i>, <i>column</i>) in this matrix so that the element can be assigned to.</p>
<!-- @@@operator() -->
<!-- $$$operator*=[overload1]$$$operator*=T -->
<h3 class="fn"><a name="operator-2a-eq"></a><span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & QGenericMatrix::<span class="name">operator*=</span> ( <span class="type">T</span> <i>factor</i> )</h3>
<p>Multiplies all elements of this matrix by <i>factor</i>.</p>
<!-- @@@operator*= -->
<!-- $$$operator+=[overload1]$$$operator+=constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator-2b-eq"></a><span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & QGenericMatrix::<span class="name">operator+=</span> ( const <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & <i>other</i> )</h3>
<p>Adds the contents of <i>other</i> to this matrix.</p>
<!-- @@@operator+= -->
<!-- $$$operator-=[overload1]$$$operator-=constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator--eq"></a><span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & QGenericMatrix::<span class="name">operator-=</span> ( const <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & <i>other</i> )</h3>
<p>Subtracts the contents of <i>other</i> from this matrix.</p>
<!-- @@@operator-= -->
<!-- $$$operator/=[overload1]$$$operator/=T -->
<h3 class="fn"><a name="operator-2f-eq"></a><span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & QGenericMatrix::<span class="name">operator/=</span> ( <span class="type">T</span> <i>divisor</i> )</h3>
<p>Divides all elements of this matrix by <i>divisor</i>.</p>
<!-- @@@operator/= -->
<!-- $$$operator==[overload1]$$$operator==constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QGenericMatrix::<span class="name">operator==</span> ( const <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & <i>other</i> ) const</h3>
<p>Returns true if this matrix is identical to <i>other</i>; false otherwise.</p>
<!-- @@@operator== -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$QMatrix2x2 -->
<h3 class="fn"><a name="QMatrix2x2-typedef"></a>typedef <span class="name">QMatrix2x2</span></h3>
<p>The QMatrix2x2 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 2 columns, 2 rows, and qreal as the element type.</p>
<!-- @@@QMatrix2x2 -->
<!-- $$$QMatrix2x3 -->
<h3 class="fn"><a name="QMatrix2x3-typedef"></a>typedef <span class="name">QMatrix2x3</span></h3>
<p>The QMatrix2x3 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 2 columns, 3 rows, and qreal as the element type.</p>
<!-- @@@QMatrix2x3 -->
<!-- $$$QMatrix2x4 -->
<h3 class="fn"><a name="QMatrix2x4-typedef"></a>typedef <span class="name">QMatrix2x4</span></h3>
<p>The QMatrix2x4 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 2 columns, 4 rows, and qreal as the element type.</p>
<!-- @@@QMatrix2x4 -->
<!-- $$$QMatrix3x2 -->
<h3 class="fn"><a name="QMatrix3x2-typedef"></a>typedef <span class="name">QMatrix3x2</span></h3>
<p>The QMatrix3x2 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 3 columns, 2 rows, and qreal as the element type.</p>
<!-- @@@QMatrix3x2 -->
<!-- $$$QMatrix3x3 -->
<h3 class="fn"><a name="QMatrix3x3-typedef"></a>typedef <span class="name">QMatrix3x3</span></h3>
<p>The QMatrix3x3 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 3 columns, 3 rows, and qreal as the element type.</p>
<!-- @@@QMatrix3x3 -->
<!-- $$$QMatrix3x4 -->
<h3 class="fn"><a name="QMatrix3x4-typedef"></a>typedef <span class="name">QMatrix3x4</span></h3>
<p>The QMatrix3x4 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 3 columns, 4 rows, and qreal as the element type.</p>
<!-- @@@QMatrix3x4 -->
<!-- $$$QMatrix4x2 -->
<h3 class="fn"><a name="QMatrix4x2-typedef"></a>typedef <span class="name">QMatrix4x2</span></h3>
<p>The QMatrix4x2 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 4 columns, 2 rows, and qreal as the element type.</p>
<!-- @@@QMatrix4x2 -->
<!-- $$$QMatrix4x3 -->
<h3 class="fn"><a name="QMatrix4x3-typedef"></a>typedef <span class="name">QMatrix4x3</span></h3>
<p>The QMatrix4x3 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 4 columns, 3 rows, and qreal as the element type.</p>
<!-- @@@QMatrix4x3 -->
<!-- $$$operator*$$$operator*constQGenericMatrix<N,M2,T>&constQGenericMatrix<M1,N,T>& -->
<h3 class="fn"><a name="operator-2a-20"></a><span class="type">QGenericMatrix</span><<span class="type">M1</span>, <span class="type">M2</span>, <span class="type">T</span>> <span class="name">operator*</span> ( const <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M2</span>, <span class="type">T</span>> & <i>m1</i>, const <span class="type">QGenericMatrix</span><<span class="type">M1</span>, <span class="type">N</span>, <span class="type">T</span>> & <i>m2</i> )</h3>
<p>Returns the product of the NxM2 matrix <i>m1</i> and the M1xN matrix <i>m2</i> to produce a M1xM2 matrix result.</p>
<!-- @@@operator* -->
<!-- $$$operator*$$$operator*TconstQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator-2a-21"></a><span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> <span class="name">operator*</span> ( <span class="type">T</span> <i>factor</i>, const <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & <i>matrix</i> )</h3>
<p>Returns the result of multiplying all elements of <i>matrix</i> by <i>factor</i>.</p>
<!-- @@@operator* -->
<!-- $$$operator*$$$operator*constQGenericMatrix<N,M,T>&T -->
<h3 class="fn"><a name="operator-2a-22"></a><span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> <span class="name">operator*</span> ( const <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & <i>matrix</i>, <span class="type">T</span> <i>factor</i> )</h3>
<p>Returns the result of multiplying all elements of <i>matrix</i> by <i>factor</i>.</p>
<!-- @@@operator* -->
<!-- $$$operator+$$$operator+constQGenericMatrix<N,M,T>&constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator-2b-11"></a><span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> <span class="name">operator+</span> ( const <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & <i>m1</i>, const <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & <i>m2</i> )</h3>
<p>Returns the sum of <i>m1</i> and <i>m2</i>.</p>
<!-- @@@operator+ -->
<!-- $$$operator-$$$operator-constQGenericMatrix<N,M,T>&constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator--9"></a><span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> <span class="name">operator-</span> ( const <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & <i>m1</i>, const <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & <i>m2</i> )</h3>
<p>Returns the difference of <i>m1</i> and <i>m2</i>.</p>
<!-- @@@operator- -->
<!-- $$$operator-$$$operator-constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator--21"></a><span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> <span class="name">operator-</span> ( const <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & <i>matrix</i> )</h3>
<p>This is an overloaded function.</p>
<p>Returns the negation of <i>matrix</i>.</p>
<!-- @@@operator- -->
<!-- $$$operator/$$$operator/constQGenericMatrix<N,M,T>&T -->
<h3 class="fn"><a name="operator-2f-6"></a><span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> <span class="name">operator/</span> ( const <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & <i>matrix</i>, <span class="type">T</span> <i>divisor</i> )</h3>
<p>Returns the result of dividing all elements of <i>matrix</i> by <i>divisor</i>.</p>
<!-- @@@operator/ -->
<!-- $$$operator<<$$$operator<<QDataStream&constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator-lt-lt-89"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> & <span class="name">operator<<</span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> & <i>stream</i>, const <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & <i>matrix</i> )</h3>
<p>Writes the given <i>matrix</i> to the given <i>stream</i> and returns a reference to the stream.</p>
<p><b>See also </b><a href="datastreamformat.html">Serializing Qt Data Types</a>.</p>
<!-- @@@operator<< -->
<!-- $$$operator>>$$$operator>>QDataStream&QGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator-gt-gt-46"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> & <span class="name">operator>></span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> & <i>stream</i>, <span class="type">QGenericMatrix</span><<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>> & <i>matrix</i> )</h3>
<p>Reads a NxM matrix from the given <i>stream</i> into the given <i>matrix</i> and returns a reference to the stream.</p>
<p><b>See also </b><a href="datastreamformat.html">Serializing Qt Data Types</a>.</p>
<!-- @@@operator>> -->
</div>
<div class="ft">
<span></span>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2012 Nokia Corporation and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.</p>
<br />
<p>
The documentation provided herein is licensed under the terms of the
<a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
License version 1.3</a> as published by the Free Software Foundation.</p>
<p>
Documentation sources may be obtained from <a href="http://www.qt-project.org">
www.qt-project.org</a>.</p>
<br />
<p>
Nokia, Qt and their respective logos are trademarks of Nokia Corporation
in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. <a title="Privacy Policy"
href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>
|