# GrapeCity.Documents.Pdf.Util.Matrix3D.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Pdf_Util_Matrix3D__ctor_" data-uid="GrapeCity.Documents.Pdf.Util.Matrix3D.#ctor*">Matrix3D Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Pdf_Util_Matrix3D__ctor_" data-uid="GrapeCity.Documents.Pdf.Util.Matrix3D.#ctor*"></a>
<h4 id="GrapeCity_Documents_Pdf_Util_Matrix3D__ctor_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_" data-uid="GrapeCity.Documents.Pdf.Util.Matrix3D.#ctor(System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single)">Matrix3D(float, float, float, float, float, float, float, float, float, float, float, float)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a> with the specified 3x3 matrix elements and translation
components.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Matrix3D(float m11, float m12, float m13, float m21, float m22, float m23, float m31, float m32, float m33, float tx, float ty, float tz)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(m11 As Single, m12 As Single, m13 As Single, m21 As Single, m22 As Single, m23 As Single, m31 As Single, m32 As Single, m33 As Single, tx As Single, ty As Single, tz As Single)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">m11</span></td>
      <td><p>Element at row 1, column 1 of the 3x3 linear matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">m12</span></td>
      <td><p>Element at row 1, column 2 of the 3x3 linear matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">m13</span></td>
      <td><p>Element at row 1, column 3 of the 3x3 linear matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">m21</span></td>
      <td><p>Element at row 2, column 1 of the 3x3 linear matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">m22</span></td>
      <td><p>Element at row 2, column 2 of the 3x3 linear matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">m23</span></td>
      <td><p>Element at row 2, column 3 of the 3x3 linear matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">m31</span></td>
      <td><p>Element at row 3, column 1 of the 3x3 linear matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">m32</span></td>
      <td><p>Element at row 3, column 2 of the 3x3 linear matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">m33</span></td>
      <td><p>Element at row 3, column 3 of the 3x3 linear matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">tx</span></td>
      <td><p>Translation component along the X axis.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">ty</span></td>
      <td><p>Translation component along the Y axis.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">tz</span></td>
      <td><p>Translation component along the Z axis.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Documents_Pdf_Util_Matrix3D__ctor_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Matrix elements are stored in row-major order. A 3D point v is transformed by M * v +
T, where M is the 3x3 matrix defined by m11..m33 and T is the translation vector (tx, ty, tz).</p>
</div>


<a id="GrapeCity_Documents_Pdf_Util_Matrix3D__ctor_" data-uid="GrapeCity.Documents.Pdf.Util.Matrix3D.#ctor*"></a>
<h4 id="GrapeCity_Documents_Pdf_Util_Matrix3D__ctor_System_Single___" data-uid="GrapeCity.Documents.Pdf.Util.Matrix3D.#ctor(System.Single[])">Matrix3D(float[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Matrix3D(float[] values)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(values As Single())</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a>[]</td>
      <td><span class="parametername">values</span></td>
      <td><p>The values to assign to the components of the matrix. This must be an array with 12 elements.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
