3595 lines
84 KiB
HTML
3595 lines
84 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Class Vec2d | HiAPI-C# 2025 </title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="title" content="Class Vec2d | HiAPI-C# 2025 ">
|
|
|
|
<meta name="description" content="Basic 2D point (or vector).">
|
|
<link rel="icon" href="../img/HiAPI.favicon.ico">
|
|
<link rel="stylesheet" href="../public/docfx.min.css">
|
|
<link rel="stylesheet" href="../public/main.css">
|
|
<meta name="docfx:navrel" content="../toc.html">
|
|
<meta name="docfx:tocrel" content="toc.html">
|
|
|
|
<meta name="docfx:rel" content="../">
|
|
|
|
|
|
|
|
<meta name="loc:inThisArticle" content="In this article">
|
|
<meta name="loc:searchResultsCount" content="{count} results for "{query}"">
|
|
<meta name="loc:searchNoResults" content="No results for "{query}"">
|
|
<meta name="loc:tocFilter" content="Filter by title">
|
|
<meta name="loc:nextArticle" content="Next">
|
|
<meta name="loc:prevArticle" content="Previous">
|
|
<meta name="loc:themeLight" content="Light">
|
|
<meta name="loc:themeDark" content="Dark">
|
|
<meta name="loc:themeAuto" content="Auto">
|
|
<meta name="loc:changeTheme" content="Change theme">
|
|
<meta name="loc:copy" content="Copy">
|
|
<meta name="loc:downloadPdf" content="Download PDF">
|
|
|
|
<script type="module" src="./../public/docfx.min.js"></script>
|
|
|
|
<script>
|
|
const theme = localStorage.getItem('theme') || 'auto'
|
|
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
|
|
<header class="bg-body border-bottom">
|
|
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
|
|
<div class="container-xxl flex-nowrap">
|
|
<a class="navbar-brand" href="../index.html">
|
|
<img id="logo" class="svg" src="../img/HiAPI.logo.png" alt="">
|
|
|
|
</a>
|
|
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
|
|
<i class="bi bi-three-dots"></i>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navpanel">
|
|
<div id="navbar">
|
|
<form class="search" role="search" id="search">
|
|
<i class="bi bi-search"></i>
|
|
<input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="container-xxl">
|
|
<div class="toc-offcanvas">
|
|
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
|
|
<div class="offcanvas-header">
|
|
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
|
|
</div>
|
|
<div class="offcanvas-body">
|
|
<nav class="toc" id="toc"></nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<div class="actionbar">
|
|
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
|
|
<i class="bi bi-list"></i>
|
|
</button>
|
|
|
|
<nav id="breadcrumb"></nav>
|
|
</div>
|
|
|
|
<article data-uid="Hi.Geom.Vec2d">
|
|
|
|
|
|
|
|
<h1 id="Hi_Geom_Vec2d" data-uid="Hi.Geom.Vec2d" class="text-break">
|
|
Class Vec2d
|
|
</h1>
|
|
|
|
<div class="facts text-secondary">
|
|
<dl><dt>Namespace</dt><dd><a class="xref" href="Hi.html">Hi</a>.<a class="xref" href="Hi.Geom.html">Geom</a></dd></dl>
|
|
<dl><dt>Assembly</dt><dd>HiGeom.dll</dd></dl>
|
|
</div>
|
|
|
|
<div class="markdown summary"><p>Basic 2D point (or vector).</p>
|
|
</div>
|
|
<div class="markdown conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public class Vec2d : IExpandToBox2d, IEquatable<Vec2d>, ICsvRowIo, IEqualityOperators<Vec2d, Vec2d, bool>, IAdditionOperators<Vec2d, Vec2d, Vec2d>, ISubtractionOperators<Vec2d, Vec2d, Vec2d>, IMultiplyOperators<Vec2d, double, Vec2d>, IDivisionOperators<Vec2d, double, Vec2d>, IVec<double>, IFormattable</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<dl class="typelist inheritance">
|
|
<dt>Inheritance</dt>
|
|
<dd>
|
|
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
|
|
<div><span class="xref">Vec2d</span></div>
|
|
</dd>
|
|
</dl>
|
|
|
|
<dl class="typelist implements">
|
|
<dt>Implements</dt>
|
|
<dd>
|
|
<div><a class="xref" href="Hi.Geom.IExpandToBox2d.html">IExpandToBox2d</a></div>
|
|
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a><<a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a>></div>
|
|
<div><a class="xref" href="Hi.Common.CsvUtils.ICsvRowIo.html">ICsvRowIo</a></div>
|
|
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.numerics.iequalityoperators-3">IEqualityOperators</a><<a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a>, <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>></div>
|
|
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.numerics.iadditionoperators-3">IAdditionOperators</a><<a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a>, <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a>, <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a>></div>
|
|
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.numerics.isubtractionoperators-3">ISubtractionOperators</a><<a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a>, <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a>, <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a>></div>
|
|
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.numerics.imultiplyoperators-3">IMultiplyOperators</a><<a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a>></div>
|
|
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.numerics.idivisionoperators-3">IDivisionOperators</a><<a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a>></div>
|
|
<div><a class="xref" href="Hi.Geom.IVec-1.html">IVec</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>></div>
|
|
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iformattable">IFormattable</a></div>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
<dl class="typelist inheritedMembers">
|
|
<dt>Inherited Members</dt>
|
|
<dd>
|
|
<div>
|
|
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
|
|
</div>
|
|
</dd></dl>
|
|
|
|
<dl class="typelist extensionMethods">
|
|
<dt>Extension Methods</dt>
|
|
<dd>
|
|
<div>
|
|
<a class="xref" href="Hi.Common.DuplicateUtil.html#Hi_Common_DuplicateUtil_TryDuplicate__1___0_System_Object___">DuplicateUtil.TryDuplicate<TSelf>(TSelf, params object[])</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Common.InvokeUtil.html#Hi_Common_InvokeUtil_SelfInvoke__1___0_System_Action___0__">InvokeUtil.SelfInvoke<TSrc>(TSrc, Action<TSrc>)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Common.InvokeUtil.html#Hi_Common_InvokeUtil_SelfInvoke__2___0_System_Func___0___1__">InvokeUtil.SelfInvoke<TSrc, TDst>(TSrc, Func<TSrc, TDst>)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Coloring.ColorUtil.html#Hi_Coloring_ColorUtil_GetGloomyColor_System_Object_System_Double_System_Double_">ColorUtil.GetGloomyColor(object, double, double)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Common.NameUtil.html#Hi_Common_NameUtil_GetSelectionName_System_Object_">NameUtil.GetSelectionName(object)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Common.StringUtil.html#Hi_Common_StringUtil_GetPropertyStringIfToStringNotOverloaded_System_Object_System_Boolean_System_Boolean_">StringUtil.GetPropertyStringIfToStringNotOverloaded(object, bool, bool)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Parallels.LockUtil.html#Hi_Parallels_LockUtil_Lock_System_Object_">LockUtil.Lock(object)</a>
|
|
</div>
|
|
</dd></dl>
|
|
|
|
|
|
|
|
|
|
|
|
<h2 class="section" id="constructors">Constructors
|
|
</h2>
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d__ctor_" data-uid="Hi.Geom.Vec2d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d__ctor" data-uid="Hi.Geom.Vec2d.#ctor">
|
|
Vec2d()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Default constructor. Creates a vector with coordinates (0,0).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d()</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d__ctor_" data-uid="Hi.Geom.Vec2d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d__ctor_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.#ctor(Hi.Geom.Vec2d)">
|
|
Vec2d(Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Copy ctor.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d(Vec2d src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>src</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d__ctor_" data-uid="Hi.Geom.Vec2d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d__ctor_Hi_Geom_Vec2i_" data-uid="Hi.Geom.Vec2d.#ctor(Hi.Geom.Vec2i)">
|
|
Vec2d(Vec2i)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Creates a vector from Vec2i by converting integer coordinates to double.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d(Vec2i src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Geom.Vec2i.html">Vec2i</a></dt>
|
|
<dd><p>Source Vec2i vector with integer coordinates</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d__ctor_" data-uid="Hi.Geom.Vec2d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d__ctor_Hi_Native_vec2d_" data-uid="Hi.Geom.Vec2d.#ctor(Hi.Native.vec2d)">
|
|
Vec2d(vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>ctor.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d(vec2d src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Native.vec2d.html">vec2d</a></dt>
|
|
<dd><p>src</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d__ctor_" data-uid="Hi.Geom.Vec2d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d__ctor_System_Double_System_Double_" data-uid="Hi.Geom.Vec2d.#ctor(System.Double,System.Double)">
|
|
Vec2d(double, double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Ctor.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d(double x, double y)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>x</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>x</p>
|
|
</dd>
|
|
<dt><code>y</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>y</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d__ctor_" data-uid="Hi.Geom.Vec2d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d__ctor_System_Func_System_Int32_System_Double__" data-uid="Hi.Geom.Vec2d.#ctor(System.Func{System.Int32,System.Double})">
|
|
Vec2d(Func<int, double>)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Ctor using a function that maps direction index to value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d(Func<int, double> dirToValueFunc)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>dirToValueFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>></dt>
|
|
<dd><p>Function that maps direction index to value</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d__ctor_" data-uid="Hi.Geom.Vec2d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d__ctor_System_IO_BinaryReader_" data-uid="Hi.Geom.Vec2d.#ctor(System.IO.BinaryReader)">
|
|
Vec2d(BinaryReader)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Ctor by bytes:
|
|
x = reader.ReadDouble();
|
|
y = reader.ReadDouble();</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d(BinaryReader reader)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>reader</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.binaryreader">BinaryReader</a></dt>
|
|
<dd><p>reader</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d__ctor_" data-uid="Hi.Geom.Vec2d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d__ctor_System_Int32_System_Double_System_Double_" data-uid="Hi.Geom.Vec2d.#ctor(System.Int32,System.Double,System.Double)">
|
|
Vec2d(int, double, double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Ctor by direction offset.
|
|
Direction 0,1 indicate x,y respectively.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d(int dir, double a, double b)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>dir</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>direction offset</p>
|
|
</dd>
|
|
<dt><code>a</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>value at direction (0+dir)%2</p>
|
|
</dd>
|
|
<dt><code>b</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>value at direction (1+dir)%2</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d__ctor_" data-uid="Hi.Geom.Vec2d.#ctor*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d__ctor_System_String_" data-uid="Hi.Geom.Vec2d.#ctor(System.String)">
|
|
Vec2d(string)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Ctor by string. The format is (x,y).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d(string src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd><p>src</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2 class="section" id="fields">Fields
|
|
</h2>
|
|
|
|
|
|
|
|
<h3 id="Hi_Geom_Vec2d_x" data-uid="Hi.Geom.Vec2d.x">
|
|
x
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Value at x direction.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double x</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Field Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="Hi_Geom_Vec2d_y" data-uid="Hi.Geom.Vec2d.y">
|
|
y
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Value at y direction.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double y</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Field Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2 class="section" id="properties">Properties
|
|
</h2>
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_AbsSum_" data-uid="Hi.Geom.Vec2d.AbsSum*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_AbsSum" data-uid="Hi.Geom.Vec2d.AbsSum">
|
|
AbsSum
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Sum of abs(x) and abs(y).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double AbsSum { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_AllOne_" data-uid="Hi.Geom.Vec2d.AllOne*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_AllOne" data-uid="Hi.Geom.Vec2d.AllOne">
|
|
AllOne
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate vec (1,1).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d AllOne { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>(1,1)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_AmpPhase_" data-uid="Hi.Geom.Vec2d.AmpPhase*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_AmpPhase" data-uid="Hi.Geom.Vec2d.AmpPhase">
|
|
AmpPhase
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Create <a class="xref" href="Hi.Geom.Vec2d.html#Hi_Geom_Vec2d_AmpPhase">AmpPhase</a> instance.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public AmpPhase AmpPhase { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Physics.AmpPhase.html">AmpPhase</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Angle_deg_" data-uid="Hi.Geom.Vec2d.Angle_deg*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Angle_deg" data-uid="Hi.Geom.Vec2d.Angle_deg">
|
|
Angle_deg
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Angle in degree between vec(x,y) and vec(1,0).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double Angle_deg { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Angle_rad_" data-uid="Hi.Geom.Vec2d.Angle_rad*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Angle_rad" data-uid="Hi.Geom.Vec2d.Angle_rad">
|
|
Angle_rad
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Angle in radian between vec(x,y) and vec(1,0).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double Angle_rad { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_CsvText_" data-uid="Hi.Geom.Vec2d.CsvText*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_CsvText" data-uid="Hi.Geom.Vec2d.CsvText">
|
|
CsvText
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Csv text.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public string CsvText { get; set; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_CsvTitleText_" data-uid="Hi.Geom.Vec2d.CsvTitleText*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_CsvTitleText" data-uid="Hi.Geom.Vec2d.CsvTitleText">
|
|
CsvTitleText
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Csv titles text.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public string CsvTitleText { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_IsAllFinite_" data-uid="Hi.Geom.Vec2d.IsAllFinite*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_IsAllFinite" data-uid="Hi.Geom.Vec2d.IsAllFinite">
|
|
IsAllFinite
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"></div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool IsAllFinite { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd><p>Is x,y,z all finite.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_IsAllNaN_" data-uid="Hi.Geom.Vec2d.IsAllNaN*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_IsAllNaN" data-uid="Hi.Geom.Vec2d.IsAllNaN">
|
|
IsAllNaN
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"></div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool IsAllNaN { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd><p>is x,y all <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double.nan">NaN</a>.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_IsAllNegativeInfinity_" data-uid="Hi.Geom.Vec2d.IsAllNegativeInfinity*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_IsAllNegativeInfinity" data-uid="Hi.Geom.Vec2d.IsAllNegativeInfinity">
|
|
IsAllNegativeInfinity
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"></div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool IsAllNegativeInfinity { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd><p>is x,y all <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double.negativeinfinity">NegativeInfinity</a>.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_IsAllPositiveInfinity_" data-uid="Hi.Geom.Vec2d.IsAllPositiveInfinity*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_IsAllPositiveInfinity" data-uid="Hi.Geom.Vec2d.IsAllPositiveInfinity">
|
|
IsAllPositiveInfinity
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"></div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool IsAllPositiveInfinity { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd><p>is x,y all <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double.positiveinfinity">PositiveInfinity</a>.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_IsAnyFinite_" data-uid="Hi.Geom.Vec2d.IsAnyFinite*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_IsAnyFinite" data-uid="Hi.Geom.Vec2d.IsAnyFinite">
|
|
IsAnyFinite
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"></div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool IsAnyFinite { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd><p>Is at least one of x,y finite.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_IsAnyNaN_" data-uid="Hi.Geom.Vec2d.IsAnyNaN*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_IsAnyNaN" data-uid="Hi.Geom.Vec2d.IsAnyNaN">
|
|
IsAnyNaN
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Is any member nan.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool IsAnyNaN { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_IsZero_" data-uid="Hi.Geom.Vec2d.IsZero*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_IsZero" data-uid="Hi.Geom.Vec2d.IsZero">
|
|
IsZero
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"></div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool IsZero { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd><p>Is zero vector.
|
|
Which is <code>x == 0 && y == 0</code>.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Item_" data-uid="Hi.Geom.Vec2d.Item*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Item_System_Int32_" data-uid="Hi.Geom.Vec2d.Item(System.Int32)">
|
|
this[int]
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets or sets the element at the specified index.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double this[int dir] { get; set; }</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>dir</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>The element at the specified index.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Length_" data-uid="Hi.Geom.Vec2d.Length*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Length" data-uid="Hi.Geom.Vec2d.Length">
|
|
Length
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Length.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double Length { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_LengthSquare_" data-uid="Hi.Geom.Vec2d.LengthSquare*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_LengthSquare" data-uid="Hi.Geom.Vec2d.LengthSquare">
|
|
LengthSquare
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Length square.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double LengthSquare { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_MaxAbsDir_" data-uid="Hi.Geom.Vec2d.MaxAbsDir*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_MaxAbsDir" data-uid="Hi.Geom.Vec2d.MaxAbsDir">
|
|
MaxAbsDir
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get the direction of the max absolute value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public int MaxAbsDir { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_MaxDir_" data-uid="Hi.Geom.Vec2d.MaxDir*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_MaxDir" data-uid="Hi.Geom.Vec2d.MaxDir">
|
|
MaxDir
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get the direction of the max value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public int MaxDir { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_MaxValue_" data-uid="Hi.Geom.Vec2d.MaxValue*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_MaxValue" data-uid="Hi.Geom.Vec2d.MaxValue">
|
|
MaxValue
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get max value from {x,y}.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double MaxValue { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_MinDir_" data-uid="Hi.Geom.Vec2d.MinDir*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_MinDir" data-uid="Hi.Geom.Vec2d.MinDir">
|
|
MinDir
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get the direction index with minimum value.
|
|
If {x,y} is the smallest, return {0,1}.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public int MinDir { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_MinValue_" data-uid="Hi.Geom.Vec2d.MinValue*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_MinValue" data-uid="Hi.Geom.Vec2d.MinValue">
|
|
MinValue
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get min value from {x,y}.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double MinValue { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_NaN_" data-uid="Hi.Geom.Vec2d.NaN*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_NaN" data-uid="Hi.Geom.Vec2d.NaN">
|
|
NaN
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate NAN vec.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d NaN { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>(nan,nan)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_NativeByteSize_" data-uid="Hi.Geom.Vec2d.NativeByteSize*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_NativeByteSize" data-uid="Hi.Geom.Vec2d.NativeByteSize">
|
|
NativeByteSize
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"></div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static int NativeByteSize { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>Byte size: sizeof(double) * 2.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_NegativeInfinity_" data-uid="Hi.Geom.Vec2d.NegativeInfinity*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_NegativeInfinity" data-uid="Hi.Geom.Vec2d.NegativeInfinity">
|
|
NegativeInfinity
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate negative infinity vec.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d NegativeInfinity { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>(-inf,-inf)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_PositiveInfinity_" data-uid="Hi.Geom.Vec2d.PositiveInfinity*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_PositiveInfinity" data-uid="Hi.Geom.Vec2d.PositiveInfinity">
|
|
PositiveInfinity
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate positive infinity vec.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d PositiveInfinity { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>(inf,inf)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Rank_" data-uid="Hi.Geom.Vec2d.Rank*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Rank" data-uid="Hi.Geom.Vec2d.Rank">
|
|
Rank
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Dimension (i.e. Size) of the Vector.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public int Rank { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_UnitX_" data-uid="Hi.Geom.Vec2d.UnitX*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_UnitX" data-uid="Hi.Geom.Vec2d.UnitX">
|
|
UnitX
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate vec (1,0).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d UnitX { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>(1,0)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_UnitY_" data-uid="Hi.Geom.Vec2d.UnitY*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_UnitY" data-uid="Hi.Geom.Vec2d.UnitY">
|
|
UnitY
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate vec (0,1).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d UnitY { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>(0,1)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_X_" data-uid="Hi.Geom.Vec2d.X*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_X" data-uid="Hi.Geom.Vec2d.X">
|
|
X
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets or sets the X coordinate value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double X { get; set; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Y_" data-uid="Hi.Geom.Vec2d.Y*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Y" data-uid="Hi.Geom.Vec2d.Y">
|
|
Y
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets or sets the Y coordinate value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double Y { get; set; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Zero_" data-uid="Hi.Geom.Vec2d.Zero*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Zero" data-uid="Hi.Geom.Vec2d.Zero">
|
|
Zero
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate vec (0,0).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d Zero { get; }</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="section">Property Value</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>(0,0)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2 class="section" id="methods">Methods
|
|
</h2>
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_All_" data-uid="Hi.Geom.Vec2d.All*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_All_System_Double_" data-uid="Hi.Geom.Vec2d.All(System.Double)">
|
|
All(double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a> with all components set to the given value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d All(double v)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>v</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_At_" data-uid="Hi.Geom.Vec2d.At*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_At_System_Int32_" data-uid="Hi.Geom.Vec2d.At(System.Int32)">
|
|
At(int)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Member at direction.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public ref double At(int dir)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>dir</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>direction</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>member</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Cross_" data-uid="Hi.Geom.Vec2d.Cross*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Cross_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.Cross(Hi.Geom.Vec2d)">
|
|
Cross(Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Cross.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double Cross(Vec2d src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>src</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>cross value</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Dot_" data-uid="Hi.Geom.Vec2d.Dot*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Dot_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.Dot(Hi.Geom.Vec2d)">
|
|
Dot(Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Dot.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double Dot(Vec2d src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>src</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>dotted value</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Equals_" data-uid="Hi.Geom.Vec2d.Equals*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Equals_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.Equals(Hi.Geom.Vec2d)">
|
|
Equals(Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Indicates whether the current object is equal to another object of the same type.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool Equals(Vec2d other)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>other</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>An object to compare with this object.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the current object is equal to the <code class="paramref">other</code> parameter; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Equals_" data-uid="Hi.Geom.Vec2d.Equals*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Equals_Hi_Geom_Vec2d_System_Double_" data-uid="Hi.Geom.Vec2d.Equals(Hi.Geom.Vec2d,System.Double)">
|
|
Equals(Vec2d, double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>check equals for each component with tolerance.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool Equals(Vec2d other, double toleranceForEachComponent)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>other</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>other vec</p>
|
|
</dd>
|
|
<dt><code>toleranceForEachComponent</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>tolerance for each component</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd><p>check equals for each component with tolerance.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Equals_" data-uid="Hi.Geom.Vec2d.Equals*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Equals_System_Object_" data-uid="Hi.Geom.Vec2d.Equals(System.Object)">
|
|
Equals(object)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Determines whether the specified object is equal to the current object.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public override bool Equals(object obj)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>obj</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></dt>
|
|
<dd><p>The object to compare with the current object.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the specified object is equal to the current object; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_ExpandMax_" data-uid="Hi.Geom.Vec2d.ExpandMax*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_ExpandMax_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.ExpandMax(Hi.Geom.Vec2d)">
|
|
ExpandMax(Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Find and expand maximum values from src.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public void ExpandMax(Vec2d src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>src</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_ExpandMin_" data-uid="Hi.Geom.Vec2d.ExpandMin*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_ExpandMin_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.ExpandMin(Hi.Geom.Vec2d)">
|
|
ExpandMin(Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Find and expand minimum values from src.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public void ExpandMin(Vec2d src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>src</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_ExpandToBox2d_" data-uid="Hi.Geom.Vec2d.ExpandToBox2d*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_ExpandToBox2d_Hi_Geom_Box2d_" data-uid="Hi.Geom.Vec2d.ExpandToBox2d(Hi.Geom.Box2d)">
|
|
ExpandToBox2d(Box2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Expands the destination box.
|
|
This function is usually used to compute the bounding box of elements.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public void ExpandToBox2d(Box2d dst)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>dst</code> <a class="xref" href="Hi.Geom.Box2d.html">Box2d</a></dt>
|
|
<dd><p>Destination box</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GenNaN_" data-uid="Hi.Geom.Vec2d.GenNaN*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GenNaN" data-uid="Hi.Geom.Vec2d.GenNaN">
|
|
GenNaN()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate NAN vec.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d GenNaN()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>(nan,nan)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GenNegativeInfinity_" data-uid="Hi.Geom.Vec2d.GenNegativeInfinity*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GenNegativeInfinity" data-uid="Hi.Geom.Vec2d.GenNegativeInfinity">
|
|
GenNegativeInfinity()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate negative infinity vec.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d GenNegativeInfinity()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>(-inf,-inf)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GenOne_" data-uid="Hi.Geom.Vec2d.GenOne*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GenOne" data-uid="Hi.Geom.Vec2d.GenOne">
|
|
GenOne()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate vec (1,1).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d GenOne()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>(1,1)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GenPositiveInfinity_" data-uid="Hi.Geom.Vec2d.GenPositiveInfinity*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GenPositiveInfinity" data-uid="Hi.Geom.Vec2d.GenPositiveInfinity">
|
|
GenPositiveInfinity()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate positive infinity vec.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d GenPositiveInfinity()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>(inf,inf)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GenUnitX_" data-uid="Hi.Geom.Vec2d.GenUnitX*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GenUnitX" data-uid="Hi.Geom.Vec2d.GenUnitX">
|
|
GenUnitX()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate vec (1,0).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d GenUnitX()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>(1,0)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GenUnitY_" data-uid="Hi.Geom.Vec2d.GenUnitY*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GenUnitY" data-uid="Hi.Geom.Vec2d.GenUnitY">
|
|
GenUnitY()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate vec (0,1).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d GenUnitY()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>(0,1)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GenZero_" data-uid="Hi.Geom.Vec2d.GenZero*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GenZero" data-uid="Hi.Geom.Vec2d.GenZero">
|
|
GenZero()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate vec (0,0).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d GenZero()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>(0,0)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GetCosSquareWith_" data-uid="Hi.Geom.Vec2d.GetCosSquareWith*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GetCosSquareWith_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.GetCosSquareWith(Hi.Geom.Vec2d)">
|
|
GetCosSquareWith(Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get Cos(theta)^2. theta is the angle between this and <code class="paramref">src</code>.
|
|
This function is faster than <a class="xref" href="Hi.Geom.Vec2d.html#Hi_Geom_Vec2d_GetCosWith_Hi_Geom_Vec2d_">GetCosWith(Vec2d)</a> since it lacks one square root operation.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double GetCosSquareWith(Vec2d src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>one of edge vector</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Cos(theta)^2</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GetCosWith_" data-uid="Hi.Geom.Vec2d.GetCosWith*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GetCosWith_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.GetCosWith(Hi.Geom.Vec2d)">
|
|
GetCosWith(Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get cos(angle). The angle is between v and this.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double GetCosWith(Vec2d v)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>v</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>v</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>cos(angle)</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GetCsvText_" data-uid="Hi.Geom.Vec2d.GetCsvText*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GetCsvText_System_String_" data-uid="Hi.Geom.Vec2d.GetCsvText(System.String)">
|
|
GetCsvText(string)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get CSV text with specified format.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public string GetCsvText(string format)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>format</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd><p>Format string for each component</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd><p>CSV formatted string</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GetEachValueAbs_" data-uid="Hi.Geom.Vec2d.GetEachValueAbs*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GetEachValueAbs" data-uid="Hi.Geom.Vec2d.GetEachValueAbs">
|
|
GetEachValueAbs()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get a new vector with each value set to its absolute value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d GetEachValueAbs()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>A new vector with absolute values</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GetHashCode_" data-uid="Hi.Geom.Vec2d.GetHashCode*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GetHashCode" data-uid="Hi.Geom.Vec2d.GetHashCode">
|
|
GetHashCode()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Serves as the default hash function.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public override int GetHashCode()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>A hash code for the current object.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GetMulEach_" data-uid="Hi.Geom.Vec2d.GetMulEach*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GetMulEach_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.GetMulEach(Hi.Geom.Vec2d)">
|
|
GetMulEach(Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get a new vector with each component multiplied with the corresponding component of the given vector.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d GetMulEach(Vec2d vec)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>vec</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>The vector to multiply with</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>A new vector with multiplied components</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GetNormalized_" data-uid="Hi.Geom.Vec2d.GetNormalized*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GetNormalized" data-uid="Hi.Geom.Vec2d.GetNormalized">
|
|
GetNormalized()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Generate normalized vec.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d GetNormalized()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>Normalized vec</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GetRadian_" data-uid="Hi.Geom.Vec2d.GetRadian*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GetRadian_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.GetRadian(Hi.Geom.Vec2d)">
|
|
GetRadian(Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get angle between this and <code class="paramref">v</code>.
|
|
The angle has no sign.
|
|
This vector is not required to be an unit vector.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double GetRadian(Vec2d v)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>v</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>one of the edge vector. Not required to be an unit vector.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Angle in radian</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_GetTransform_" data-uid="Hi.Geom.Vec2d.GetTransform*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_GetTransform_System_Func_System_Double_System_Double__" data-uid="Hi.Geom.Vec2d.GetTransform(System.Func{System.Double,System.Double})">
|
|
GetTransform(Func<double, double>)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get the new <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a> by transforming each element by the function.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d GetTransform(Func<double, double> transformingFunc)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>transformingFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Interpolate_" data-uid="Hi.Geom.Vec2d.Interpolate*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Interpolate_Hi_Geom_Vec2d_Hi_Geom_Vec2d_System_Double_" data-uid="Hi.Geom.Vec2d.Interpolate(Hi.Geom.Vec2d,Hi.Geom.Vec2d,System.Double)">
|
|
Interpolate(Vec2d, Vec2d, double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Linear interpolate between a and b.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d Interpolate(Vec2d a, Vec2d b, double alpha)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>a</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>a</p>
|
|
</dd>
|
|
<dt><code>b</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>b</p>
|
|
</dd>
|
|
<dt><code>alpha</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>ratio</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>interpolation</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_IsNormalized_" data-uid="Hi.Geom.Vec2d.IsNormalized*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_IsNormalized_System_Double_" data-uid="Hi.Geom.Vec2d.IsNormalized(System.Double)">
|
|
IsNormalized(double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Check if this vector is normalized.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool IsNormalized(double toleranceSquare = 1E-07)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>toleranceSquare</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Tolerance for checking if length squared is 1</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd><p>True if the vector is normalized</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_MulEach_" data-uid="Hi.Geom.Vec2d.MulEach*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_MulEach_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.MulEach(Hi.Geom.Vec2d)">
|
|
MulEach(Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Multiply each component with the corresponding component of the given vector.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d MulEach(Vec2d vec)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>vec</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>The vector to multiply with</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>this</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Normalize_" data-uid="Hi.Geom.Vec2d.Normalize*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Normalize" data-uid="Hi.Geom.Vec2d.Normalize">
|
|
Normalize()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Normalize.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d Normalize()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>this</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Set_" data-uid="Hi.Geom.Vec2d.Set*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Set_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.Set(Hi.Geom.Vec2d)">
|
|
Set(Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Set values by copy.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d Set(Vec2d src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>src</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>this</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Set_" data-uid="Hi.Geom.Vec2d.Set*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Set_Hi_Native_vec2d_" data-uid="Hi.Geom.Vec2d.Set(Hi.Native.vec2d)">
|
|
Set(vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Set values by copy.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d Set(vec2d src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Native.vec2d.html">vec2d</a></dt>
|
|
<dd><p>src</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>this</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Set_" data-uid="Hi.Geom.Vec2d.Set*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Set_System_Double_System_Double_" data-uid="Hi.Geom.Vec2d.Set(System.Double,System.Double)">
|
|
Set(double, double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Set values.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d Set(double x, double y)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>x</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>x</p>
|
|
</dd>
|
|
<dt><code>y</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>y</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>this</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Set_" data-uid="Hi.Geom.Vec2d.Set*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Set_System_Double___" data-uid="Hi.Geom.Vec2d.Set(System.Double[])">
|
|
Set(double[])
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Set values by array.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d Set(double[] xy)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>xy</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
|
|
<dd><p>double[]{x,y}</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>this</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Set_" data-uid="Hi.Geom.Vec2d.Set*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Set_System_Func_System_Int32_System_Double_System_Double__" data-uid="Hi.Geom.Vec2d.Set(System.Func{System.Int32,System.Double,System.Double})">
|
|
Set(Func<int, double, double>)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Set values using a function that maps direction index and current value to new value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d Set(Func<int, double, double> dirToValueFunc)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>dirToValueFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-3">Func</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>></dt>
|
|
<dd><p>Function that maps direction index and current value to new value</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>this</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Set_" data-uid="Hi.Geom.Vec2d.Set*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Set_System_Func_System_Int32_System_Double__" data-uid="Hi.Geom.Vec2d.Set(System.Func{System.Int32,System.Double})">
|
|
Set(Func<int, double>)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Set values using a function that maps direction index to value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d Set(Func<int, double> dirToValueFunc)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>dirToValueFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>></dt>
|
|
<dd><p>Function that maps direction index to value</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>this</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Set_" data-uid="Hi.Geom.Vec2d.Set*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Set_System_Int32_System_Double_System_Double_" data-uid="Hi.Geom.Vec2d.Set(System.Int32,System.Double,System.Double)">
|
|
Set(int, double, double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Set values by direction offset.
|
|
Direction 0,1,2 indicate x,y,z respectively.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d Set(int dir, double a, double b)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>dir</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>direction offset</p>
|
|
</dd>
|
|
<dt><code>a</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>value at direction (0+dir)%2</p>
|
|
</dd>
|
|
<dt><code>b</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>value at direction (1+dir)%2</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>this</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_SetEachNanToZero_" data-uid="Hi.Geom.Vec2d.SetEachNanToZero*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_SetEachNanToZero" data-uid="Hi.Geom.Vec2d.SetEachNanToZero">
|
|
SetEachNanToZero()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Set <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double.nan">NaN</a> to 0 for each value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d SetEachNanToZero()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>this</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_SetEachValueAbs_" data-uid="Hi.Geom.Vec2d.SetEachValueAbs*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_SetEachValueAbs" data-uid="Hi.Geom.Vec2d.SetEachValueAbs">
|
|
SetEachValueAbs()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Set all member to absolute value.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d SetEachValueAbs()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>this</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_ToString_" data-uid="Hi.Geom.Vec2d.ToString*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_ToString" data-uid="Hi.Geom.Vec2d.ToString">
|
|
ToString()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Returns a string that represents the current object.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
|
|
</div>
|
|
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd><p>A string that represents the current object.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_ToString_" data-uid="Hi.Geom.Vec2d.ToString*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_ToString_System_String_" data-uid="Hi.Geom.Vec2d.ToString(System.String)">
|
|
ToString(string)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>To string with format: (x,y)</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public string ToString(string format)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>format</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd><p>Format string for the double values</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd><p>Formatted string representation of the vector</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_ToString_" data-uid="Hi.Geom.Vec2d.ToString*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_ToString_System_String_System_IFormatProvider_" data-uid="Hi.Geom.Vec2d.ToString(System.String,System.IFormatProvider)">
|
|
ToString(string, IFormatProvider)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Returns a string representation of the vector formatted according to the specified format.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public string ToString(string format, IFormatProvider formatProvider)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>format</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd><p>The format to use for each component</p>
|
|
</dd>
|
|
<dt><code>formatProvider</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iformatprovider">IFormatProvider</a></dt>
|
|
<dd><p>The format provider to use</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd><p>A formatted string representation of the vector</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_ToString_" data-uid="Hi.Geom.Vec2d.ToString*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_ToString_System_String_System_Int32_" data-uid="Hi.Geom.Vec2d.ToString(System.String,System.Int32)">
|
|
ToString(string, int)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Format the vector with padding.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public string ToString(string format, int leftPadding)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>format</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd><p>Format string for each component</p>
|
|
</dd>
|
|
<dt><code>leftPadding</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>Left padding for each component</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
|
<dd><p>Formatted string</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_Transform_" data-uid="Hi.Geom.Vec2d.Transform*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_Transform_System_Func_System_Double_System_Double__" data-uid="Hi.Geom.Vec2d.Transform(System.Func{System.Double,System.Double})">
|
|
Transform(Func<double, double>)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Transform each element by the function.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Vec2d Transform(Func<double, double> transformingFunc)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>transformingFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_WriteBin_" data-uid="Hi.Geom.Vec2d.WriteBin*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_WriteBin_System_IO_BinaryWriter_" data-uid="Hi.Geom.Vec2d.WriteBin(System.IO.BinaryWriter)">
|
|
WriteBin(BinaryWriter)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Output to bytes:
|
|
writer.Write(x);
|
|
writer.Write(y);</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public void WriteBin(BinaryWriter writer)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>writer</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.binarywriter">BinaryWriter</a></dt>
|
|
<dd><p>writer</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2 class="section" id="operators">Operators
|
|
</h2>
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_op_Addition_" data-uid="Hi.Geom.Vec2d.op_Addition*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_op_Addition_Hi_Geom_Vec2d_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.op_Addition(Hi.Geom.Vec2d,Hi.Geom.Vec2d)">
|
|
operator +(Vec2d, Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Plus.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d operator +(Vec2d left, Vec2d right)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>left</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>a</p>
|
|
</dd>
|
|
<dt><code>right</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>b</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>a+b</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_op_Division_" data-uid="Hi.Geom.Vec2d.op_Division*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_op_Division_Hi_Geom_Vec2d_System_Double_" data-uid="Hi.Geom.Vec2d.op_Division(Hi.Geom.Vec2d,System.Double)">
|
|
operator /(Vec2d, double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>a/d.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d operator /(Vec2d a, double d)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>a</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>a</p>
|
|
</dd>
|
|
<dt><code>d</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>d</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>a/d</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_op_Equality_" data-uid="Hi.Geom.Vec2d.op_Equality*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_op_Equality_Hi_Geom_Vec2d_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.op_Equality(Hi.Geom.Vec2d,Hi.Geom.Vec2d)">
|
|
operator ==(Vec2d, Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Equality operator for comparing two Vec2d objects.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static bool operator ==(Vec2d left, Vec2d right)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>left</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>Left operand</p>
|
|
</dd>
|
|
<dt><code>right</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>Right operand</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd><p>True if the vectors are equal, false otherwise</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_op_Inequality_" data-uid="Hi.Geom.Vec2d.op_Inequality*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_op_Inequality_Hi_Geom_Vec2d_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.op_Inequality(Hi.Geom.Vec2d,Hi.Geom.Vec2d)">
|
|
operator !=(Vec2d, Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Inequality operator for comparing two Vec2d objects.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static bool operator !=(Vec2d left, Vec2d right)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>left</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>Left operand</p>
|
|
</dd>
|
|
<dt><code>right</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>Right operand</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd><p>True if the vectors are not equal, false otherwise</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_op_Multiply_" data-uid="Hi.Geom.Vec2d.op_Multiply*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_op_Multiply_Hi_Geom_Vec2d_System_Double_" data-uid="Hi.Geom.Vec2d.op_Multiply(Hi.Geom.Vec2d,System.Double)">
|
|
operator *(Vec2d, double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>a*s.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d operator *(Vec2d a, double s)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>a</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>a</p>
|
|
</dd>
|
|
<dt><code>s</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>s</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>a*s</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_op_Subtraction_" data-uid="Hi.Geom.Vec2d.op_Subtraction*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_op_Subtraction_Hi_Geom_Vec2d_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.op_Subtraction(Hi.Geom.Vec2d,Hi.Geom.Vec2d)">
|
|
operator -(Vec2d, Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>a-b.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d operator -(Vec2d a, Vec2d b)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>a</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>a</p>
|
|
</dd>
|
|
<dt><code>b</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>b</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>a-b</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_Vec2d_op_UnaryNegation_" data-uid="Hi.Geom.Vec2d.op_UnaryNegation*"></a>
|
|
|
|
<h3 id="Hi_Geom_Vec2d_op_UnaryNegation_Hi_Geom_Vec2d_" data-uid="Hi.Geom.Vec2d.op_UnaryNegation(Hi.Geom.Vec2d)">
|
|
operator -(Vec2d)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Negate.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d operator -(Vec2d src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>src</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
|
|
<dd><p>Negate</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
|
|
<div class="contribution d-print-none">
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="affix">
|
|
<nav id="affix"></nav>
|
|
</div>
|
|
</main>
|
|
|
|
<div class="container-xxl search-results" id="search-results"></div>
|
|
|
|
<footer class="border-top text-secondary">
|
|
<div class="container-xxl">
|
|
<div class="flex-fill">
|
|
<span> Copyright © 2025 <a href='https://superhightech.com.tw'>Tech Coordinate</a>. All rights reserved. <a href='https://superhightech.com.tw'>超級高科技股份有限公司</a> © 2025 版權所有 </span>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|