# C1.Util.DX.Matrix4x4.LookAtRef

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Matrix4x4_LookAtRef_" data-uid="C1.Util.DX.Matrix4x4.LookAtRef*">LookAtRef Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Matrix4x4_LookAtRef_" data-uid="C1.Util.DX.Matrix4x4.LookAtRef*"></a>
<h4 id="C1_Util_DX_Matrix4x4_LookAtRef_C1_Util_DX_Matrix4x4__C1_Util_DX_Vector3__C1_Util_DX_Vector3__C1_Util_DX_Vector3__" data-uid="C1.Util.DX.Matrix4x4.LookAtRef(C1.Util.DX.Matrix4x4@,C1.Util.DX.Vector3@,C1.Util.DX.Vector3@,C1.Util.DX.Vector3@)">LookAtRef(out Matrix4x4, ref Vector3, ref Vector3, ref Vector3)</h4>
<div class="markdown level1 summary"><p>Creates a view matrix.</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 LookAtRef(out Matrix4x4 result, ref Vector3 cameraPosition, ref Vector3 cameraTarget, ref Vector3 cameraUpVector)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub LookAtRef(ByRef result As Matrix4x4, ByRef cameraPosition As Vector3, ByRef cameraTarget As Vector3, ByRef cameraUpVector As Vector3)</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>The view matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Vector3.html">Vector3</a></td>
      <td><span class="parametername">cameraPosition</span></td>
      <td><p>The position of the camera.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Vector3.html">Vector3</a></td>
      <td><span class="parametername">cameraTarget</span></td>
      <td><p>The target towards which the camera is pointing.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Vector3.html">Vector3</a></td>
      <td><span class="parametername">cameraUpVector</span></td>
      <td><p>The direction that is &quot;up&quot; from the camera's point of view.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
