680 lines
25 KiB
HTML
680 lines
25 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Class PairZrUtil | HiAPI-C# 2025 </title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="title" content="Class PairZrUtil | HiAPI-C# 2025 ">
|
|
|
|
<meta name="description" content="Utility class for working with PairZr objects">
|
|
<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.PairZrUtil">
|
|
|
|
|
|
|
|
<h1 id="Hi_Geom_PairZrUtil" data-uid="Hi.Geom.PairZrUtil" class="text-break">
|
|
Class PairZrUtil
|
|
</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>Utility class for working with PairZr objects</p>
|
|
</div>
|
|
<div class="markdown conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static class PairZrUtil</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">PairZrUtil</span></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)">object.Equals(object)</a>
|
|
</div>
|
|
<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.gethashcode">object.GetHashCode()</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>
|
|
<div>
|
|
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>
|
|
</div>
|
|
</dd></dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2 class="section" id="methods">Methods
|
|
</h2>
|
|
|
|
|
|
<a id="Hi_Geom_PairZrUtil_GetIntensiveZrs_" data-uid="Hi.Geom.PairZrUtil.GetIntensiveZrs*"></a>
|
|
|
|
<h3 id="Hi_Geom_PairZrUtil_GetIntensiveZrs_System_Collections_Generic_IEnumerable_Hi_Geom_PairZr__System_Double_" data-uid="Hi.Geom.PairZrUtil.GetIntensiveZrs(System.Collections.Generic.IEnumerable{Hi.Geom.PairZr},System.Double)">
|
|
GetIntensiveZrs(IEnumerable<PairZr>, double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"></div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static IEnumerable<PairZr> GetIntensiveZrs(this IEnumerable<PairZr> src, double ZResolution)</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.collections.generic.ienumerable-1">IEnumerable</a><<a class="xref" href="Hi.Geom.PairZr.html">PairZr</a>></dt>
|
|
<dd></dd>
|
|
<dt><code>ZResolution</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="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a><<a class="xref" href="Hi.Geom.PairZr.html">PairZr</a>></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_PairZrUtil_GetNormal2d_" data-uid="Hi.Geom.PairZrUtil.GetNormal2d*"></a>
|
|
|
|
<h3 id="Hi_Geom_PairZrUtil_GetNormal2d_System_Collections_Generic_SortedList_System_Double_Hi_Geom_PairZr__System_Double_" data-uid="Hi.Geom.PairZrUtil.GetNormal2d(System.Collections.Generic.SortedList{System.Double,Hi.Geom.PairZr},System.Double)">
|
|
GetNormal2d(SortedList<double, PairZr>, double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets a 2D normal vector to the surface at the specified Z position</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d GetNormal2d(this SortedList<double, PairZr> zVsPairZr, double z)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>zVsPairZr</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.sortedlist-2">SortedList</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="Hi.Geom.PairZr.html">PairZr</a>></dt>
|
|
<dd><p>The sorted list of PairZr objects defining the surface</p>
|
|
</dd>
|
|
<dt><code>z</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>The Z position to get the normal vector for</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 2D normal vector to the surface, or null if it cannot be calculated</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_PairZrUtil_GetNormal2dByFittedZ_" data-uid="Hi.Geom.PairZrUtil.GetNormal2dByFittedZ*"></a>
|
|
|
|
<h3 id="Hi_Geom_PairZrUtil_GetNormal2dByFittedZ_System_Collections_Generic_SortedList_System_Double_Hi_Geom_PairZr__System_Double_System_Double__" data-uid="Hi.Geom.PairZrUtil.GetNormal2dByFittedZ(System.Collections.Generic.SortedList{System.Double,Hi.Geom.PairZr},System.Double,System.Double@)">
|
|
GetNormal2dByFittedZ(SortedList<double, PairZr>, double, out double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets a 2D normal vector to the surface at the specified Z position, adjusted to fit within the Z range</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d GetNormal2dByFittedZ(this SortedList<double, PairZr> zVsPairZr, double z, out double fittedZ)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>zVsPairZr</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.sortedlist-2">SortedList</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="Hi.Geom.PairZr.html">PairZr</a>></dt>
|
|
<dd><p>The sorted list of PairZr objects defining the surface</p>
|
|
</dd>
|
|
<dt><code>z</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>The Z position to get the normal vector for</p>
|
|
</dd>
|
|
<dt><code>fittedZ</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Output parameter that receives the adjusted Z value that fits within the range</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 2D normal vector to the surface, or null if it cannot be calculated</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_PairZrUtil_GetRByZ_" data-uid="Hi.Geom.PairZrUtil.GetRByZ*"></a>
|
|
|
|
<h3 id="Hi_Geom_PairZrUtil_GetRByZ_System_Collections_Generic_List_Hi_Geom_PairZr__System_Double_" data-uid="Hi.Geom.PairZrUtil.GetRByZ(System.Collections.Generic.List{Hi.Geom.PairZr},System.Double)">
|
|
GetRByZ(List<PairZr>, double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets the R value at a specified Z position by interpolating between PairZr objects in a list</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static double GetRByZ(this List<PairZr> zVsPairZr, double z)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>zVsPairZr</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="Hi.Geom.PairZr.html">PairZr</a>></dt>
|
|
<dd><p>The list of PairZr objects</p>
|
|
</dd>
|
|
<dt><code>z</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>The Z position to get the R value for</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>The interpolated R value at the specified Z position, or NaN if interpolation is not possible</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_PairZrUtil_GetRByZ_" data-uid="Hi.Geom.PairZrUtil.GetRByZ*"></a>
|
|
|
|
<h3 id="Hi_Geom_PairZrUtil_GetRByZ_System_Collections_Generic_SortedList_System_Double_Hi_Geom_PairZr__System_Double_" data-uid="Hi.Geom.PairZrUtil.GetRByZ(System.Collections.Generic.SortedList{System.Double,Hi.Geom.PairZr},System.Double)">
|
|
GetRByZ(SortedList<double, PairZr>, double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets the R value at a specified Z position by interpolating between PairZr objects in a sorted list</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static double GetRByZ(this SortedList<double, PairZr> zVsPairZr, double z)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>zVsPairZr</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.sortedlist-2">SortedList</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="Hi.Geom.PairZr.html">PairZr</a>></dt>
|
|
<dd><p>The sorted list of PairZr objects keyed by Z values</p>
|
|
</dd>
|
|
<dt><code>z</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>The Z position to get the R value for</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>The interpolated R value at the specified Z position, or NaN if interpolation is not possible</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_PairZrUtil_GetSurfaceVerticalArrow2d_" data-uid="Hi.Geom.PairZrUtil.GetSurfaceVerticalArrow2d*"></a>
|
|
|
|
<h3 id="Hi_Geom_PairZrUtil_GetSurfaceVerticalArrow2d_System_Collections_Generic_List_Hi_Geom_PairZr__System_Double_" data-uid="Hi.Geom.PairZrUtil.GetSurfaceVerticalArrow2d(System.Collections.Generic.List{Hi.Geom.PairZr},System.Double)">
|
|
GetSurfaceVerticalArrow2d(List<PairZr>, double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets a 2D vector perpendicular to the surface at the specified Z position</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d GetSurfaceVerticalArrow2d(this List<PairZr> zVsPairZr, double z)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>zVsPairZr</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="Hi.Geom.PairZr.html">PairZr</a>></dt>
|
|
<dd><p>The list of PairZr objects defining the surface</p>
|
|
</dd>
|
|
<dt><code>z</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>The Z position to get the vector for</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 2D vector perpendicular to the surface, or null if it cannot be calculated</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_PairZrUtil_GetSurfaceVerticalArrow2dByFittedZ_" data-uid="Hi.Geom.PairZrUtil.GetSurfaceVerticalArrow2dByFittedZ*"></a>
|
|
|
|
<h3 id="Hi_Geom_PairZrUtil_GetSurfaceVerticalArrow2dByFittedZ_System_Collections_Generic_List_Hi_Geom_PairZr__System_Double_System_Double__" data-uid="Hi.Geom.PairZrUtil.GetSurfaceVerticalArrow2dByFittedZ(System.Collections.Generic.List{Hi.Geom.PairZr},System.Double,System.Double@)">
|
|
GetSurfaceVerticalArrow2dByFittedZ(List<PairZr>, double, out double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets a 2D vector perpendicular to the surface at the specified Z position, adjusted to fit within the Z range</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec2d GetSurfaceVerticalArrow2dByFittedZ(this List<PairZr> zVsPairZr, double z, out double fittedZ)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>zVsPairZr</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="Hi.Geom.PairZr.html">PairZr</a>></dt>
|
|
<dd><p>The list of PairZr objects defining the surface</p>
|
|
</dd>
|
|
<dt><code>z</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>The Z position to get the vector for</p>
|
|
</dd>
|
|
<dt><code>fittedZ</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Output parameter that receives the adjusted Z value that fits within the range</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 2D vector perpendicular to the surface, or null if it cannot be calculated</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_PairZrUtil_GetSurfaceVerticalArrow3dByFittedZ_" data-uid="Hi.Geom.PairZrUtil.GetSurfaceVerticalArrow3dByFittedZ*"></a>
|
|
|
|
<h3 id="Hi_Geom_PairZrUtil_GetSurfaceVerticalArrow3dByFittedZ_System_Collections_Generic_List_Hi_Geom_PairZr__System_Double_System_Double_System_Double__" data-uid="Hi.Geom.PairZrUtil.GetSurfaceVerticalArrow3dByFittedZ(System.Collections.Generic.List{Hi.Geom.PairZr},System.Double,System.Double,System.Double@)">
|
|
GetSurfaceVerticalArrow3dByFittedZ(List<PairZr>, double, double, out double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets a 3D vector perpendicular to the surface at the specified Z position, adjusted to fit within the Z range</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static Vec3d GetSurfaceVerticalArrow3dByFittedZ(this List<PairZr> zVsPairZr, double z, double angle_rad, out double fittedZ)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>zVsPairZr</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="Hi.Geom.PairZr.html">PairZr</a>></dt>
|
|
<dd><p>The list of PairZr objects defining the surface</p>
|
|
</dd>
|
|
<dt><code>z</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>The Z position to get the vector for</p>
|
|
</dd>
|
|
<dt><code>angle_rad</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>The angle in radians to position the vector around the Z axis</p>
|
|
</dd>
|
|
<dt><code>fittedZ</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>Output parameter that receives the adjusted Z value that fits within the range</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
|
<dd><p>A 3D vector perpendicular to the surface, or null if it cannot be calculated</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_PairZrUtil_GetVolume_" data-uid="Hi.Geom.PairZrUtil.GetVolume*"></a>
|
|
|
|
<h3 id="Hi_Geom_PairZrUtil_GetVolume_Hi_Geom_IGetZrList_" data-uid="Hi.Geom.PairZrUtil.GetVolume(Hi.Geom.IGetZrList)">
|
|
GetVolume(IGetZrList)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Calculates the volume of an object that implements IGetZrList</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static double GetVolume(this IGetZrList src)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>src</code> <a class="xref" href="Hi.Geom.IGetZrList.html">IGetZrList</a></dt>
|
|
<dd><p>The object that implements IGetZrList</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>The calculated volume, or 0 if the source is null</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_PairZrUtil_GetVolume_" data-uid="Hi.Geom.PairZrUtil.GetVolume*"></a>
|
|
|
|
<h3 id="Hi_Geom_PairZrUtil_GetVolume_System_Collections_Generic_IEnumerable_Hi_Geom_PairZr__" data-uid="Hi.Geom.PairZrUtil.GetVolume(System.Collections.Generic.IEnumerable{Hi.Geom.PairZr})">
|
|
GetVolume(IEnumerable<PairZr>)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Get Volume. Assume the <code class="paramref">src</code>.Z is ascendent.
|
|
If Z descendent, the result may be negative.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static double GetVolume(this IEnumerable<PairZr> 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.collections.generic.ienumerable-1">IEnumerable</a><<a class="xref" href="Hi.Geom.PairZr.html">PairZr</a>></dt>
|
|
<dd></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></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_PairZrUtil_GetZrList_" data-uid="Hi.Geom.PairZrUtil.GetZrList*"></a>
|
|
|
|
<h3 id="Hi_Geom_PairZrUtil_GetZrList_Hi_Geom_IGetStl_" data-uid="Hi.Geom.PairZrUtil.GetZrList(Hi.Geom.IGetStl)">
|
|
GetZrList(IGetStl)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Extracts a list of PairZr objects from an object that implements IGetStl</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static List<PairZr> GetZrList(this IGetStl geom)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>geom</code> <a class="xref" href="Hi.Geom.IGetStl.html">IGetStl</a></dt>
|
|
<dd><p>The object that implements IGetStl</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="Hi.Geom.PairZr.html">PairZr</a>></dt>
|
|
<dd><p>A list of PairZr objects, or null if the geometry is null</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_Geom_PairZrUtil_GetZrList_" data-uid="Hi.Geom.PairZrUtil.GetZrList*"></a>
|
|
|
|
<h3 id="Hi_Geom_PairZrUtil_GetZrList_System_Collections_Generic_IEnumerable_Hi_Geom_Tri3d__" data-uid="Hi.Geom.PairZrUtil.GetZrList(System.Collections.Generic.IEnumerable{Hi.Geom.Tri3d})">
|
|
GetZrList(IEnumerable<Tri3d>)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Extracts a list of PairZr objects from a collection of triangles</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public static List<PairZr> GetZrList(this IEnumerable<Tri3d> tris)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>tris</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a><<a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a>></dt>
|
|
<dd><p>The collection of triangles</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="Hi.Geom.PairZr.html">PairZr</a>></dt>
|
|
<dd><p>A list of PairZr objects ordered by Z value</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>
|