1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-10 03:45:41 +00:00
X10D/api/X10D.Drawing.Polygon.html

792 lines
39 KiB
HTML
Raw Normal View History

2024-06-12 14:17:02 +01:00
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class Polygon
| X10D </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class Polygon
| X10D ">
<meta name="generator" content="docfx 2.56.7.0">
<link rel="shortcut icon" href="../images/favicon.png">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/night-owl.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" integrity="sha384-EvBWSlnoFgZlXJvpzS+MAUEjvN7+gcCwH+qh7GRFOGgZO0PuwOFro7qPOJnLfe7l" crossorigin="anonymous">
<link rel="stylesheet" href="../styles/config.css">
<link rel="stylesheet" href="../styles/discord.css">
<link rel="stylesheet" href="../styles/singulink.css">
<link rel="stylesheet" href="../styles/main.css">
<meta property="docfx:navrel" content="../toc.html">
<meta property="docfx:tocrel" content="toc.html">
<meta property="docfx:rel" content="../">
<meta property="docfx:newtab" content="true">
</head>
<body>
<div class="top-navbar">
<a class="burger-icon" onclick="toggleMenu()">
<svg name="Hamburger" style="vertical-align: middle;" width="34" height="34" viewbox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M20 6H4V9H20V6ZM4 10.999H20V13.999H4V10.999ZM4 15.999H20V18.999H4V15.999Z"></path></svg>
</a>
<a class="brand" href="../index.html">
<img src="../images/favicon.png" alt="X10D" class="logomark">
<span class="brand-title">X10D</span>
</a> </div>
<div class="body-content">
<div id="blackout" class="blackout" onclick="toggleMenu()"></div>
<nav id="sidebar" role="navigation">
<div class="sidebar">
<div>
<div class="mobile-hide">
<a class="brand" href="../index.html">
<img src="../images/favicon.png" alt="X10D" class="logomark">
<span class="brand-title">X10D</span>
</a> </div>
<div class="sidesearch">
<form id="search" role="search" class="search">
<i class="bi bi-search search-icon"></i>
<input type="text" id="search-query" placeholder="Search" autocomplete="off">
</form>
</div>
<div id="navbar">
</div>
</div> <div class="sidebar-item-separator"></div>
<div id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="footer">
<strong>DocFX + Singulink = ♥</strong>
</div> </nav>
<main class="main-panel">
<div id="search-results" style="display: none;">
<h1 class="search-list">Search Results for <span></span></h1>
<div class="sr-items">
<p><i class="bi bi-hourglass-split index-loading"></i></p>
</div>
<ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
</div>
<div role="main" class="hide-when-search">
<div class="subnav navbar navbar-default">
<div class="container hide-when-search" id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</div>
</div>
<article class="content wrap" id="_content" data-uid="X10D.Drawing.Polygon">
<h1 id="X10D_Drawing_Polygon" data-uid="X10D.Drawing.Polygon" class="text-break">Class Polygon
</h1>
<div class="markdown level0 summary"><p>Represents a 2D polygon composed of 32-bit signed integer vertices.</p>
</div>
<div class="markdown level0 conceptual"></div>
<div class="inheritance">
<h5>Inheritance</h5>
<div class="level0"><span class="xref">System.Object</span></div>
<div class="level1"><span class="xref">Polygon</span></div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="X10D.Drawing.html">X10D.Drawing</a></h6>
<h6><strong>Assembly</strong>: X10D.dll</h6>
<h5 id="X10D_Drawing_Polygon_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class Polygon : IEquatable&lt;Polygon&gt;</code></pre>
</div>
<h3 id="constructors">Constructors
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon__ctor.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.%23ctor%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L16">View Source</a>
</span>
<a id="X10D_Drawing_Polygon__ctor_" data-uid="X10D.Drawing.Polygon.#ctor*"></a>
<h4 id="X10D_Drawing_Polygon__ctor" data-uid="X10D.Drawing.Polygon.#ctor">Polygon()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Polygon()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon__ctor_IEnumerable_Point__.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.%23ctor(IEnumerable%7BPoint%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L42">View Source</a>
</span>
<a id="X10D_Drawing_Polygon__ctor_" data-uid="X10D.Drawing.Polygon.#ctor*"></a>
<h4 id="X10D_Drawing_Polygon__ctor_IEnumerable_Point__" data-uid="X10D.Drawing.Polygon.#ctor(IEnumerable{Point})">Polygon(IEnumerable&lt;Point&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> class by constructing it from the specified vertices.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Polygon(IEnumerable&lt;Point&gt; vertices)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">IEnumerable</span>&lt;<span class="xref">Point</span>&gt;</td>
<td><span class="parametername">vertices</span></td>
<td><p>An enumerable collection of vertices from which the polygon should be constructed.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon__ctor_X10D_Drawing_Polygon_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.%23ctor(X10D.Drawing.Polygon)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L23">View Source</a>
</span>
<a id="X10D_Drawing_Polygon__ctor_" data-uid="X10D.Drawing.Polygon.#ctor*"></a>
<h4 id="X10D_Drawing_Polygon__ctor_X10D_Drawing_Polygon_" data-uid="X10D.Drawing.Polygon.#ctor(X10D.Drawing.Polygon)">Polygon(Polygon)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> class by copying the specified polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Polygon(Polygon polygon)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">polygon</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="properties">Properties
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_Empty.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.Empty%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L56">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_Empty_" data-uid="X10D.Drawing.Polygon.Empty*"></a>
<h4 id="X10D_Drawing_Polygon_Empty" data-uid="X10D.Drawing.Polygon.Empty">Empty</h4>
<div class="markdown level1 summary"><p>Gets an empty polygon. That is, a polygon with no vertices.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Polygon Empty { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><p>An empty polygon.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_IsConvex.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.IsConvex%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L65">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_IsConvex_" data-uid="X10D.Drawing.Polygon.IsConvex*"></a>
<h4 id="X10D_Drawing_Polygon_IsConvex" data-uid="X10D.Drawing.Polygon.IsConvex">IsConvex</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether this polygon is convex.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool IsConvex { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><span class="xref">true</span> if this polygon is convex; otherwise, <span class="xref">false</span>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_VertexCount.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.VertexCount%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L108">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_VertexCount_" data-uid="X10D.Drawing.Polygon.VertexCount*"></a>
<h4 id="X10D_Drawing_Polygon_VertexCount" data-uid="X10D.Drawing.Polygon.VertexCount">VertexCount</h4>
<div class="markdown level1 summary"><p>Gets the number of vertices in this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public int VertexCount { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>An <see cref="!:System.Int32"></see> value, representing the number of vertices in this polygon.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_Vertices.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.Vertices%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L119">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_Vertices_" data-uid="X10D.Drawing.Polygon.Vertices*"></a>
<h4 id="X10D_Drawing_Polygon_Vertices" data-uid="X10D.Drawing.Polygon.Vertices">Vertices</h4>
<div class="markdown level1 summary"><p>Gets a read-only view of the vertices in this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IReadOnlyList&lt;Point&gt; Vertices { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">IReadOnlyList</span>&lt;<span class="xref">Point</span>&gt;</td>
<td><p>A <see cref="!:IReadOnlyList&lt;T>"></see> of <see cref="!:Point"></see> values, representing the vertices of this polygon.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="methods">Methods
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_AddVertex_Point_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.AddVertex(Point)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L190">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_AddVertex_" data-uid="X10D.Drawing.Polygon.AddVertex*"></a>
<h4 id="X10D_Drawing_Polygon_AddVertex_Point_" data-uid="X10D.Drawing.Polygon.AddVertex(Point)">AddVertex(Point)</h4>
<div class="markdown level1 summary"><p>Adds a vertex to this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddVertex(Point vertex)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">Point</span></td>
<td><span class="parametername">vertex</span></td>
<td><p>The vertex to add.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_AddVertices_IEnumerable_Point__.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.AddVertices(IEnumerable%7BPoint%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L200">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_AddVertices_" data-uid="X10D.Drawing.Polygon.AddVertices*"></a>
<h4 id="X10D_Drawing_Polygon_AddVertices_IEnumerable_Point__" data-uid="X10D.Drawing.Polygon.AddVertices(IEnumerable{Point})">AddVertices(IEnumerable&lt;Point&gt;)</h4>
<div class="markdown level1 summary"><p>Adds a collection of vertices to this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddVertices(IEnumerable&lt;Point&gt; vertices)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">IEnumerable</span>&lt;<span class="xref">Point</span>&gt;</td>
<td><span class="parametername">vertices</span></td>
<td><p>An enumerable collection of vertices to add.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_ClearVertices.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.ClearVertices%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L216">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_ClearVertices_" data-uid="X10D.Drawing.Polygon.ClearVertices*"></a>
<h4 id="X10D_Drawing_Polygon_ClearVertices" data-uid="X10D.Drawing.Polygon.ClearVertices">ClearVertices()</h4>
<div class="markdown level1 summary"><p>Clears all vertices from this polygon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void ClearVertices()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_Equals_System_Nullable_System_Object__.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.Equals(System.Nullable%7BSystem.Object%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L222">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_Equals_" data-uid="X10D.Drawing.Polygon.Equals*"></a>
<h4 id="X10D_Drawing_Polygon_Equals_System_Nullable_System_Object__" data-uid="X10D.Drawing.Polygon.Equals(System.Nullable{System.Object})">Equals(Nullable&lt;Object&gt;)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override bool Equals(object? obj)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Nullable</span>&lt;<span class="xref">System.Object</span>&gt;</td>
<td><span class="parametername">obj</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_Equals_X10D_Drawing_Polygon_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.Equals(X10D.Drawing.Polygon)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L235">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_Equals_" data-uid="X10D.Drawing.Polygon.Equals*"></a>
<h4 id="X10D_Drawing_Polygon_Equals_X10D_Drawing_Polygon_" data-uid="X10D.Drawing.Polygon.Equals(X10D.Drawing.Polygon)">Equals(Polygon)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether this instance and another instance are equal.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool Equals(Polygon other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">other</span></td>
<td><p>The instance with which to compare.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><span class="xref">true</span> if this instance and <code data-dev-comment-type="paramref" class="paramref">other</code> are considered equal; otherwise,
<span class="xref">false</span>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_FromPolygonF_X10D_Drawing_PolygonF_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.FromPolygonF(X10D.Drawing.PolygonF)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L169">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_FromPolygonF_" data-uid="X10D.Drawing.Polygon.FromPolygonF*"></a>
<h4 id="X10D_Drawing_Polygon_FromPolygonF_X10D_Drawing_PolygonF_" data-uid="X10D.Drawing.Polygon.FromPolygonF(X10D.Drawing.PolygonF)">FromPolygonF(PolygonF)</h4>
<div class="markdown level1 summary"><p>Explicitly converts a <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> to a <a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static Polygon FromPolygonF(PolygonF polygon)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a></td>
<td><span class="parametername">polygon</span></td>
<td><p>The polygon to convert.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><p>The converted polygon.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_GetHashCode.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.GetHashCode%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L241">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_GetHashCode_" data-uid="X10D.Drawing.Polygon.GetHashCode*"></a>
<h4 id="X10D_Drawing_Polygon_GetHashCode" data-uid="X10D.Drawing.Polygon.GetHashCode">GetHashCode()</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override int GetHashCode()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="operators">Operators
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_op_Equality_X10D_Drawing_Polygon_X10D_Drawing_Polygon_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.op_Equality(X10D.Drawing.Polygon%2CX10D.Drawing.Polygon)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L133">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_op_Equality_" data-uid="X10D.Drawing.Polygon.op_Equality*"></a>
<h4 id="X10D_Drawing_Polygon_op_Equality_X10D_Drawing_Polygon_X10D_Drawing_Polygon_" data-uid="X10D.Drawing.Polygon.op_Equality(X10D.Drawing.Polygon,X10D.Drawing.Polygon)">Equality(Polygon, Polygon)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether two instances of <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> are equal.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool operator ==(Polygon left, Polygon right)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">left</span></td>
<td><p>The first instance.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">right</span></td>
<td><p>The second instance.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">left</code> and <code data-dev-comment-type="paramref" class="paramref">right</code> are considered equal; otherwise,
<span class="xref">false</span>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_op_Explicit_X10D_Drawing_PolygonF__X10D_Drawing_Polygon.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.op_Explicit(X10D.Drawing.PolygonF)~X10D.Drawing.Polygon%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L157">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_op_Explicit_" data-uid="X10D.Drawing.Polygon.op_Explicit*"></a>
<h4 id="X10D_Drawing_Polygon_op_Explicit_X10D_Drawing_PolygonF__X10D_Drawing_Polygon" data-uid="X10D.Drawing.Polygon.op_Explicit(X10D.Drawing.PolygonF)~X10D.Drawing.Polygon">Explicit(PolygonF to Polygon)</h4>
<div class="markdown level1 summary"><p>Explicitly converts a <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> to a <a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static explicit operator Polygon(PolygonF polygon)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.PolygonF.html">PolygonF</a></td>
<td><span class="parametername">polygon</span></td>
<td><p>The polygon to convert.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><p>The converted polygon.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/oliverbooth/X10D/new/main/apiSpec/new?filename=X10D_Drawing_Polygon_op_Inequality_X10D_Drawing_Polygon_X10D_Drawing_Polygon_.md&amp;value=---%0Auid%3A%20X10D.Drawing.Polygon.op_Inequality(X10D.Drawing.Polygon%2CX10D.Drawing.Polygon)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/oliverbooth/X10D/blob/main/X10D/src/Drawing/Polygon.cs/#L147">View Source</a>
</span>
<a id="X10D_Drawing_Polygon_op_Inequality_" data-uid="X10D.Drawing.Polygon.op_Inequality*"></a>
<h4 id="X10D_Drawing_Polygon_op_Inequality_X10D_Drawing_Polygon_X10D_Drawing_Polygon_" data-uid="X10D.Drawing.Polygon.op_Inequality(X10D.Drawing.Polygon,X10D.Drawing.Polygon)">Inequality(Polygon, Polygon)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether two instances of <a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a> are not equal.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static bool operator !=(Polygon left, Polygon right)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">left</span></td>
<td><p>The first instance.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="X10D.Drawing.Polygon.html">Polygon</a></td>
<td><span class="parametername">right</span></td>
<td><p>The second instance.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><span class="xref">true</span> if <code data-dev-comment-type="paramref" class="paramref">left</code> and <code data-dev-comment-type="paramref" class="paramref">right</code> are considered not equal; otherwise,
<span class="xref">false</span>.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="extensionmethods">Extension Methods</h3>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_AsArrayValue__1___0_">Extensions.AsArrayValue&lt;T&gt;(T)</a>
</div>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_AsEnumerableValue__1___0_">Extensions.AsEnumerableValue&lt;T&gt;(T)</a>
</div>
<div>
<a class="xref" href="X10D.Core.Extensions.html#X10D_Core_Extensions_RepeatValue__1___0_System_Int32_">Extensions.RepeatValue&lt;T&gt;(T, Int32)</a>
</div>
<div>
<a class="xref" href="X10D.Text.Extensions.html#X10D_Text_Extensions_ToJson__1___0_System_Nullable_JsonSerializerOptions__">Extensions.ToJson&lt;T&gt;(T, Nullable&lt;JsonSerializerOptions&gt;)</a>
</div>
</article>
</div>
<div class="copyright-footer">
<span>&#169; Singulink. All rights reserved.</span>
</div>
</main>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js"></script>
<script type="text/javascript" src="../styles/jquery.twbsPagination.js"></script>
<script type="text/javascript" src="../styles/url.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/anchor-js/anchor.min.js"></script>
<script type="text/javascript" src="../styles/docfx.js"></script>
<script type="text/javascript" src="../styles/singulink.js"></script>
<script type="text/javascript" src="../styles/main.js"></script> </body>
</html>