# C1.Util.DX.Animation.PrimitiveInterpolation.AddCubic

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Animation_PrimitiveInterpolation_AddCubic_" data-uid="C1.Util.DX.Animation.PrimitiveInterpolation.AddCubic*">AddCubic Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Animation_PrimitiveInterpolation_AddCubic_" data-uid="C1.Util.DX.Animation.PrimitiveInterpolation.AddCubic*"></a>
<h4 id="C1_Util_DX_Animation_PrimitiveInterpolation_AddCubic_System_Int32_System_Double_System_Single_System_Single_System_Single_System_Single_" data-uid="C1.Util.DX.Animation.PrimitiveInterpolation.AddCubic(System.Int32,System.Double,System.Single,System.Single,System.Single,System.Single)">AddCubic(int, double, float, float, float, float)</h4>
<div class="markdown level1 summary"><p>HRESULT IUIAnimationPrimitiveInterpolation::AddCubic([In] unsigned int dimension,[In] double beginOffset,[In] float constantCoefficient,[In] float linearCoefficient,[In] float quadraticCoefficient,[In] float cubicCoefficient)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddCubic(int dimension, double beginOffset, float constantCoefficient, float linearCoefficient, float quadraticCoefficient, float cubicCoefficient)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddCubic(dimension As Integer, beginOffset As Double, constantCoefficient As Single, linearCoefficient As Single, quadraticCoefficient As Single, cubicCoefficient 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.int32">int</a></td>
      <td><span class="parametername">dimension</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">beginOffset</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">constantCoefficient</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">linearCoefficient</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">quadraticCoefficient</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">cubicCoefficient</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
