# C1.Util.DX.Vector2.Lerp

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Vector2_Lerp_" data-uid="C1.Util.DX.Vector2.Lerp*">Lerp Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Vector2_Lerp_" data-uid="C1.Util.DX.Vector2.Lerp*"></a>
<h4 id="C1_Util_DX_Vector2_Lerp_C1_Util_DX_Vector2_C1_Util_DX_Vector2_System_Single_" data-uid="C1.Util.DX.Vector2.Lerp(C1.Util.DX.Vector2,C1.Util.DX.Vector2,System.Single)">Lerp(Vector2, 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 Vector2 Lerp(Vector2 value1, Vector2 value2, float amount)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Lerp(value1 As Vector2, value2 As Vector2, amount As Single) As Vector2</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">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>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Vector2.html">Vector2</a></td>
      <td><p>The interpolated vector.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
