# C1.Util.DX.Matrix4x4.RotationAxisRef

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Matrix4x4_RotationAxisRef_" data-uid="C1.Util.DX.Matrix4x4.RotationAxisRef*">RotationAxisRef Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Matrix4x4_RotationAxisRef_" data-uid="C1.Util.DX.Matrix4x4.RotationAxisRef*"></a>
<h4 id="C1_Util_DX_Matrix4x4_RotationAxisRef_C1_Util_DX_Matrix4x4__C1_Util_DX_Vector3__System_Single_" data-uid="C1.Util.DX.Matrix4x4.RotationAxisRef(C1.Util.DX.Matrix4x4@,C1.Util.DX.Vector3@,System.Single)">RotationAxisRef(out Matrix4x4, ref Vector3, float)</h4>
<div class="markdown level1 summary"><p>Creates a matrix that rotates around an arbitary axis.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void RotationAxisRef(out Matrix4x4 result, ref Vector3 axis, float radians)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub RotationAxisRef(ByRef result As Matrix4x4, ByRef axis As Vector3, radians 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="C1.Util.DX.Matrix4x4.html">Matrix4x4</a></td>
      <td><span class="parametername">result</span></td>
      <td><p>When the method completes, contains the created rotation matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Vector3.html">Vector3</a></td>
      <td><span class="parametername">axis</span></td>
      <td><p>The axis around which to rotate. This parameter is assumed to be normalized.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">radians</span></td>
      <td><p>Angle of rotation, in radians. Angles are measured clockwise when looking along the rotation axis toward the origin.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
