# C1.Util.DX.Vector2.LerpRef

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Vector2_LerpRef_" data-uid="C1.Util.DX.Vector2.LerpRef*">LerpRef Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Vector2_LerpRef_" data-uid="C1.Util.DX.Vector2.LerpRef*"></a>
<h4 id="C1_Util_DX_Vector2_LerpRef_C1_Util_DX_Vector2__C1_Util_DX_Vector2__C1_Util_DX_Vector2__System_Single_" data-uid="C1.Util.DX.Vector2.LerpRef(C1.Util.DX.Vector2@,C1.Util.DX.Vector2@,C1.Util.DX.Vector2@,System.Single)">LerpRef(out Vector2, ref Vector2, ref Vector2, float)</h4>
<div class="markdown level1 summary"><p>Performs a linear interpolation between two vectors based on the given weighting.</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 LerpRef(out Vector2 result, ref Vector2 value1, ref Vector2 value2, float amount)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub LerpRef(ByRef result As Vector2, ByRef value1 As Vector2, ByRef value2 As Vector2, amount 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.Vector2.html">Vector2</a></td>
      <td><span class="parametername">result</span></td>
      <td><p>When the method completes, contains an the interpolated vector.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Vector2.html">Vector2</a></td>
      <td><span class="parametername">value1</span></td>
      <td><p>The first vector.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Vector2.html">Vector2</a></td>
      <td><span class="parametername">value2</span></td>
      <td><p>The second vector.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">amount</span></td>
      <td><p>A value between 0 and 1 that indicates the weight of value2.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
