# C1.Util.DX.DXGI.Rational

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_DXGI_Rational" data-uid="C1.Util.DX.DXGI.Rational" class="text-break">Rational Struct
</h1>
  <div class="markdown level0 summary"><p>DXGI_RATIONAL</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="C1.Util.DX.DXGI.Rational.html">Rational</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.DXGI.html">C1.Util.DX.DXGI</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.DX.4.6.2.dll</h6>
  <h5 id="C1_Util_DX_DXGI_Rational_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct Rational : IEquatable&lt;Rational&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure Rational
    Implements IEquatable(Of Rational)</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_DXGI_Rational__ctor_System_Int32_System_Int32_" data-uid="C1.Util.DX.DXGI.Rational.#ctor(System.Int32,System.Int32)">
          <a class="xref" href="C1.Util.DX.DXGI.Rational.-ctor.html#C1_Util_DX_DXGI_Rational__ctor_System_Int32_System_Int32_">Rational(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <span class="xref">C1.Win.DX.DXGI.Rational</span> structure.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_DXGI_Rational_Denominator" data-uid="C1.Util.DX.DXGI.Rational.Denominator">
          <a class="xref" href="C1.Util.DX.DXGI.Rational.Denominator.html">Denominator</a>
        </td>
        <td class="markdown level1 summary"><p>unsigned int Denominator</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Rational_Empty" data-uid="C1.Util.DX.DXGI.Rational.Empty">
          <a class="xref" href="C1.Util.DX.DXGI.Rational.Empty.html">Empty</a>
        </td>
        <td class="markdown level1 summary"><p>An empty rational that can be used for comparisons.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Rational_Numerator" data-uid="C1.Util.DX.DXGI.Rational.Numerator">
          <a class="xref" href="C1.Util.DX.DXGI.Rational.Numerator.html">Numerator</a>
        </td>
        <td class="markdown level1 summary"><p>unsigned int Numerator</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_DXGI_Rational_Equals_C1_Util_DX_DXGI_Rational_" data-uid="C1.Util.DX.DXGI.Rational.Equals(C1.Util.DX.DXGI.Rational)">
          <a class="xref" href="C1.Util.DX.DXGI.Rational.Equals.html#C1_Util_DX_DXGI_Rational_Equals_C1_Util_DX_DXGI_Rational_">Equals(Rational)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified Rational is equal to the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Rational_Equals_System_Object_" data-uid="C1.Util.DX.DXGI.Rational.Equals(System.Object)">
          <a class="xref" href="C1.Util.DX.DXGI.Rational.Equals.html#C1_Util_DX_DXGI_Rational_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified object is equal to the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Rational_GetHashCode" data-uid="C1.Util.DX.DXGI.Rational.GetHashCode">
          <a class="xref" href="C1.Util.DX.DXGI.Rational.GetHashCode.html#C1_Util_DX_DXGI_Rational_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Serves as the default hash function.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_DXGI_Rational_op_Equality_C1_Util_DX_DXGI_Rational_C1_Util_DX_DXGI_Rational_" data-uid="C1.Util.DX.DXGI.Rational.op_Equality(C1.Util.DX.DXGI.Rational,C1.Util.DX.DXGI.Rational)">
          <a class="xref" href="C1.Util.DX.DXGI.Rational.op_Equality.html#C1_Util_DX_DXGI_Rational_op_Equality_C1_Util_DX_DXGI_Rational_C1_Util_DX_DXGI_Rational_">operator ==(Rational, Rational)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified Rational objects are equal.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_DXGI_Rational_op_Inequality_C1_Util_DX_DXGI_Rational_C1_Util_DX_DXGI_Rational_" data-uid="C1.Util.DX.DXGI.Rational.op_Inequality(C1.Util.DX.DXGI.Rational,C1.Util.DX.DXGI.Rational)">
          <a class="xref" href="C1.Util.DX.DXGI.Rational.op_Inequality.html#C1_Util_DX_DXGI_Rational_op_Inequality_C1_Util_DX_DXGI_Rational_C1_Util_DX_DXGI_Rational_">operator !=(Rational, Rational)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified Rational objects are not equal.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
