2025-07-25 16:27:29 +08:00

1727 lines
44 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Class Tri3d | HiAPI-C# 2025 </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Class Tri3d | HiAPI-C# 2025 ">
<meta name="description" content="Basic 3D Triangle.">
<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 &quot;{query}&quot;">
<meta name="loc:searchNoResults" content="No results for &quot;{query}&quot;">
<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.Tri3d">
<h1 id="Hi_Geom_Tri3d" data-uid="Hi.Geom.Tri3d" class="text-break">
Class Tri3d
</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 3D Triangle.</p>
</div>
<div class="markdown conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class Tri3d : ITri3d, IFlat3d, IExpandToBox3d, IEquatable&lt;Tri3d&gt;, IBinaryIo, IWriteBin</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">Tri3d</span></div>
</dd>
</dl>
<dl class="typelist implements">
<dt>Implements</dt>
<dd>
<div><a class="xref" href="Hi.Geom.ITri3d.html">ITri3d</a></div>
<div><a class="xref" href="Hi.Geom.IFlat3d.html">IFlat3d</a></div>
<div><a class="xref" href="Hi.Geom.IExpandToBox3d.html">IExpandToBox3d</a></div>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a>&gt;</div>
<div><a class="xref" href="Hi.Common.IBinaryIo.html">IBinaryIo</a></div>
<div><a class="xref" href="Hi.Common.IWriteBin.html">IWriteBin</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.BinIoUtil.html#Hi_Common_BinIoUtil_ToBytes_Hi_Common_IWriteBin_">BinIoUtil.ToBytes(IWriteBin)</a>
</div>
<div>
<a class="xref" href="Hi.Geom.GeomUtil.html#Hi_Geom_GeomUtil_ExpandToBox3d_Hi_Geom_IExpandToBox3d_Hi_Geom_Mat4d_Hi_Geom_Box3d_">GeomUtil.ExpandToBox3d(IExpandToBox3d, Mat4d, Box3d)</a>
</div>
<div>
<a class="xref" href="Hi.Geom.GeomUtil.html#Hi_Geom_GeomUtil_GetBox3d_Hi_Geom_IExpandToBox3d_">GeomUtil.GetBox3d(IExpandToBox3d)</a>
</div>
<div>
<a class="xref" href="Hi.Common.DuplicateUtil.html#Hi_Common_DuplicateUtil_TryDuplicate__1___0_System_Object___">DuplicateUtil.TryDuplicate&lt;TSelf&gt;(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&lt;TSrc&gt;(TSrc, Action&lt;TSrc&gt;)</a>
</div>
<div>
<a class="xref" href="Hi.Common.InvokeUtil.html#Hi_Common_InvokeUtil_SelfInvoke__2___0_System_Func___0___1__">InvokeUtil.SelfInvoke&lt;TSrc, TDst&gt;(TSrc, Func&lt;TSrc, TDst&gt;)</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_Tri3d__ctor_" data-uid="Hi.Geom.Tri3d.#ctor*"></a>
<h3 id="Hi_Geom_Tri3d__ctor_Hi_Geom_ITri3d_" data-uid="Hi.Geom.Tri3d.#ctor(Hi.Geom.ITri3d)">
Tri3d(ITri3d)
</h3>
<div class="markdown level1 summary"><p>Creates a triangle from an ITri3d interface</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d(ITri3d t)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>t</code> <a class="xref" href="Hi.Geom.ITri3d.html">ITri3d</a></dt>
<dd><p>The source triangle implementing ITri3d</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d__ctor_" data-uid="Hi.Geom.Tri3d.#ctor*"></a>
<h3 id="Hi_Geom_Tri3d__ctor_Hi_Geom_ITri3d_Hi_Geom_Mat4d_" data-uid="Hi.Geom.Tri3d.#ctor(Hi.Geom.ITri3d,Hi.Geom.Mat4d)">
Tri3d(ITri3d, Mat4d)
</h3>
<div class="markdown level1 summary"><p>Creates a triangle from an ITri3d interface and transforms it using a matrix</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d(ITri3d t, Mat4d mat)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>t</code> <a class="xref" href="Hi.Geom.ITri3d.html">ITri3d</a></dt>
<dd><p>The source triangle implementing ITri3d</p>
</dd>
<dt><code>mat</code> <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
<dd><p>The transformation matrix to apply</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d__ctor_" data-uid="Hi.Geom.Tri3d.#ctor*"></a>
<h3 id="Hi_Geom_Tri3d__ctor_Hi_Geom_Tri3d_System_Boolean_" data-uid="Hi.Geom.Tri3d.#ctor(Hi.Geom.Tri3d,System.Boolean)">
Tri3d(Tri3d, bool)
</h3>
<div class="markdown level1 summary"><p>Creates a triangle by copying or referencing another triangle</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d(Tri3d t, bool useRef = false)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>t</code> <a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a></dt>
<dd><p>The source triangle</p>
</dd>
<dt><code>useRef</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd><p>If true, references to the source triangle's vertices and normal are used; otherwise, copies are created</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d__ctor_" data-uid="Hi.Geom.Tri3d.#ctor*"></a>
<h3 id="Hi_Geom_Tri3d__ctor_Hi_Geom_Vec3d_Hi_Geom_Vec3d_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Tri3d.#ctor(Hi.Geom.Vec3d,Hi.Geom.Vec3d,Hi.Geom.Vec3d)">
Tri3d(Vec3d, Vec3d, Vec3d)
</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 Tri3d(Vec3d p0, Vec3d p1, Vec3d p2)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>p0</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>apex0</p>
</dd>
<dt><code>p1</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>apex1</p>
</dd>
<dt><code>p2</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>apex2</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d__ctor_" data-uid="Hi.Geom.Tri3d.#ctor*"></a>
<h3 id="Hi_Geom_Tri3d__ctor_Hi_Geom_Vec3d_Hi_Geom_Vec3d_Hi_Geom_Vec3d_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Tri3d.#ctor(Hi.Geom.Vec3d,Hi.Geom.Vec3d,Hi.Geom.Vec3d,Hi.Geom.Vec3d)">
Tri3d(Vec3d, Vec3d, Vec3d, Vec3d)
</h3>
<div class="markdown level1 summary"><p>Creates a triangle with the specified vertices and normal vector</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d(Vec3d p0, Vec3d p1, Vec3d p2, Vec3d n)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>p0</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>First vertex</p>
</dd>
<dt><code>p1</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>Second vertex</p>
</dd>
<dt><code>p2</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>Third vertex</p>
</dd>
<dt><code>n</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>Normal vector</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d__ctor_" data-uid="Hi.Geom.Tri3d.#ctor*"></a>
<h3 id="Hi_Geom_Tri3d__ctor_Hi_Native_tri3d_" data-uid="Hi.Geom.Tri3d.#ctor(Hi.Native.tri3d)">
Tri3d(tri3d)
</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 Tri3d(tri3d src)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>src</code> <a class="xref" href="Hi.Native.tri3d.html">tri3d</a></dt>
<dd><p>src</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d__ctor_" data-uid="Hi.Geom.Tri3d.#ctor*"></a>
<h3 id="Hi_Geom_Tri3d__ctor_System_Boolean_" data-uid="Hi.Geom.Tri3d.#ctor(System.Boolean)">
Tri3d(bool)
</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 Tri3d(bool initAllMemberToNull = false)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>initAllMemberToNull</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd><p>If true, the three apexes and normal are null;
otherwise, they are initialized by the default constructor of <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>.</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d__ctor_" data-uid="Hi.Geom.Tri3d.#ctor*"></a>
<h3 id="Hi_Geom_Tri3d__ctor_System_IO_BinaryReader_" data-uid="Hi.Geom.Tri3d.#ctor(System.IO.BinaryReader)">
Tri3d(BinaryReader)
</h3>
<div class="markdown level1 summary"><p>Creates a triangle by reading its data from a binary reader</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d(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>The binary reader to read from</p>
</dd>
</dl>
<h2 class="section" id="fields">Fields
</h2>
<h3 id="Hi_Geom_Tri3d_n" data-uid="Hi.Geom.Tri3d.n">
n
</h3>
<div class="markdown level1 summary"><p>normal vector of this triangle.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Vec3d n</code></pre>
</div>
<h4 class="section">Field Value</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd></dd>
</dl>
<h3 id="Hi_Geom_Tri3d_ps" data-uid="Hi.Geom.Tri3d.ps">
ps
</h3>
<div class="markdown level1 summary"><p>Points. Three apexs.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Vec3d[] ps</code></pre>
</div>
<h4 class="section">Field Value</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>[]</dt>
<dd></dd>
</dl>
<h2 class="section" id="properties">Properties
</h2>
<a id="Hi_Geom_Tri3d_Area_" data-uid="Hi.Geom.Tri3d.Area*"></a>
<h3 id="Hi_Geom_Tri3d_Area" data-uid="Hi.Geom.Tri3d.Area">
Area
</h3>
<div class="markdown level1 summary"><p>Gets the area of the triangle</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public double Area { 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_Tri3d_NativeByteSize_" data-uid="Hi.Geom.Tri3d.NativeByteSize*"></a>
<h3 id="Hi_Geom_Tri3d_NativeByteSize" data-uid="Hi.Geom.Tri3d.NativeByteSize">
NativeByteSize
</h3>
<div class="markdown level1 summary"><p>Native byte size.</p>
</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></dd>
</dl>
<h2 class="section" id="methods">Methods
</h2>
<a id="Hi_Geom_Tri3d_Equals_" data-uid="Hi.Geom.Tri3d.Equals*"></a>
<h3 id="Hi_Geom_Tri3d_Equals_Hi_Geom_Tri3d_" data-uid="Hi.Geom.Tri3d.Equals(Hi.Geom.Tri3d)">
Equals(Tri3d)
</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(Tri3d other)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>other</code> <a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</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_Tri3d_Equals_" data-uid="Hi.Geom.Tri3d.Equals*"></a>
<h3 id="Hi_Geom_Tri3d_Equals_System_Object_" data-uid="Hi.Geom.Tri3d.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_Tri3d_ExpandToBox3d_" data-uid="Hi.Geom.Tri3d.ExpandToBox3d*"></a>
<h3 id="Hi_Geom_Tri3d_ExpandToBox3d_Hi_Geom_Box3d_" data-uid="Hi.Geom.Tri3d.ExpandToBox3d(Hi.Geom.Box3d)">
ExpandToBox3d(Box3d)
</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 ExpandToBox3d(Box3d dst)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>dst</code> <a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
<dd><p>Destination box</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_GetApex_" data-uid="Hi.Geom.Tri3d.GetApex*"></a>
<h3 id="Hi_Geom_Tri3d_GetApex_System_Int32_" data-uid="Hi.Geom.Tri3d.GetApex(System.Int32)">
GetApex(int)
</h3>
<div class="markdown level1 summary"><p>Gets the specified vertex (apex) of this triangle.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Vec3d GetApex(int i)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>i</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>Index of the vertex (0-2)</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>The position of the specified vertex</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_GetDistanceToOrigin_" data-uid="Hi.Geom.Tri3d.GetDistanceToOrigin*"></a>
<h3 id="Hi_Geom_Tri3d_GetDistanceToOrigin" data-uid="Hi.Geom.Tri3d.GetDistanceToOrigin">
GetDistanceToOrigin()
</h3>
<div class="markdown level1 summary"><p>Signed Distance To Origin.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public double GetDistanceToOrigin()</code></pre>
</div>
<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>Signed Distance To Origin.</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_GetEdgeArrow_" data-uid="Hi.Geom.Tri3d.GetEdgeArrow*"></a>
<h3 id="Hi_Geom_Tri3d_GetEdgeArrow_System_Int32_" data-uid="Hi.Geom.Tri3d.GetEdgeArrow(System.Int32)">
GetEdgeArrow(int)
</h3>
<div class="markdown level1 summary"><p>Gets the edge vector from vertex i to vertex i+1.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Vec3d GetEdgeArrow(int i)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>i</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>The index of the starting vertex (0, 1, or 2).</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>The vector representing the edge.</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_GetHashCode_" data-uid="Hi.Geom.Tri3d.GetHashCode*"></a>
<h3 id="Hi_Geom_Tri3d_GetHashCode" data-uid="Hi.Geom.Tri3d.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_Tri3d_GetLocate_" data-uid="Hi.Geom.Tri3d.GetLocate*"></a>
<h3 id="Hi_Geom_Tri3d_GetLocate" data-uid="Hi.Geom.Tri3d.GetLocate">
GetLocate()
</h3>
<div class="markdown level1 summary"><p>Gets an anchor point on this flat surface.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Vec3d GetLocate()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>A point on the flat surface</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_GetNormal_" data-uid="Hi.Geom.Tri3d.GetNormal*"></a>
<h3 id="Hi_Geom_Tri3d_GetNormal" data-uid="Hi.Geom.Tri3d.GetNormal">
GetNormal()
</h3>
<div class="markdown level1 summary"><p>Gets the normal vector of the flat surface.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Vec3d GetNormal()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>The unit normal vector</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_GetRewind_" data-uid="Hi.Geom.Tri3d.GetRewind*"></a>
<h3 id="Hi_Geom_Tri3d_GetRewind" data-uid="Hi.Geom.Tri3d.GetRewind">
GetRewind()
</h3>
<div class="markdown level1 summary"><p>Creates a new triangle with reversed vertex order and flipped normal</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d GetRewind()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a></dt>
<dd><p>A new triangle with reversed vertex order</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_GetSegmentsFromPlaneClip_" data-uid="Hi.Geom.Tri3d.GetSegmentsFromPlaneClip*"></a>
<h3 id="Hi_Geom_Tri3d_GetSegmentsFromPlaneClip_Hi_Geom_IFlat3d_" data-uid="Hi.Geom.Tri3d.GetSegmentsFromPlaneClip(Hi.Geom.IFlat3d)">
GetSegmentsFromPlaneClip(IFlat3d)
</h3>
<div class="markdown level1 summary"><p>Gets the line segments resulting from intersecting this triangle with a clipping plane.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IEnumerable&lt;Segment3d&gt; GetSegmentsFromPlaneClip(IFlat3d clipPlane)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>clipPlane</code> <a class="xref" href="Hi.Geom.IFlat3d.html">IFlat3d</a></dt>
<dd><p>The clipping plane</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.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="Hi.Geom.Segment3d.html">Segment3d</a>&gt;</dt>
<dd><p>An enumerable of line segments representing the intersection</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_GetTransform_" data-uid="Hi.Geom.Tri3d.GetTransform*"></a>
<h3 id="Hi_Geom_Tri3d_GetTransform_Hi_Geom_Mat4d_" data-uid="Hi.Geom.Tri3d.GetTransform(Hi.Geom.Mat4d)">
GetTransform(Mat4d)
</h3>
<div class="markdown level1 summary"><p>Creates a new triangle by transforming this triangle using the specified matrix.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d GetTransform(Mat4d mat)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>mat</code> <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
<dd><p>The transformation matrix.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a></dt>
<dd><p>A new transformed triangle.</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_GetTranslate_" data-uid="Hi.Geom.Tri3d.GetTranslate*"></a>
<h3 id="Hi_Geom_Tri3d_GetTranslate_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Tri3d.GetTranslate(Hi.Geom.Vec3d)">
GetTranslate(Vec3d)
</h3>
<div class="markdown level1 summary"><p>Creates a new triangle by translating this triangle by the specified vector.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d GetTranslate(Vec3d v)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>v</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>The translation vector.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a></dt>
<dd><p>A new translated triangle.</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_GetTriSplition_" data-uid="Hi.Geom.Tri3d.GetTriSplition*"></a>
<h3 id="Hi_Geom_Tri3d_GetTriSplition_System_Double___Hi_Geom_Tri3d____Hi_Geom_Tri3d____" data-uid="Hi.Geom.Tri3d.GetTriSplition(System.Double[],Hi.Geom.Tri3d[]@,Hi.Geom.Tri3d[]@)">
GetTriSplition(double[], out Tri3d[], out Tri3d[])
</h3>
<div class="markdown level1 summary"><p>Get triangles splition by <code class="paramref">pointWeights</code> interpolation.
<code class="paramref">negativeTris</code> or <code class="paramref">positiveTris</code> are null if no triangles generated.
If all <code class="paramref">pointWeights</code> is 0, no triangle generated.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void GetTriSplition(double[] pointWeights, out Tri3d[] positiveTris, out Tri3d[] negativeTris)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>pointWeights</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
<dd><p>weights of points</p>
</dd>
<dt><code>positiveTris</code> <a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a>[]</dt>
<dd><p>triangles with positive or zero weight</p>
</dd>
<dt><code>negativeTris</code> <a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a>[]</dt>
<dd><p>triangles with negative or zero weight</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_ReBuildNormal_" data-uid="Hi.Geom.Tri3d.ReBuildNormal*"></a>
<h3 id="Hi_Geom_Tri3d_ReBuildNormal" data-uid="Hi.Geom.Tri3d.ReBuildNormal">
ReBuildNormal()
</h3>
<div class="markdown level1 summary"><p>Rebuilds the normal vector of the triangle based on its vertices.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Vec3d ReBuildNormal()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>The rebuilt normal vector.</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_ReadBin_" data-uid="Hi.Geom.Tri3d.ReadBin*"></a>
<h3 id="Hi_Geom_Tri3d_ReadBin_System_IO_BinaryReader_" data-uid="Hi.Geom.Tri3d.ReadBin(System.IO.BinaryReader)">
ReadBin(BinaryReader)
</h3>
<div class="markdown level1 summary"><p>Reads binary data to initialize the object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void ReadBin(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>The binary reader to read from</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_Rewind_" data-uid="Hi.Geom.Tri3d.Rewind*"></a>
<h3 id="Hi_Geom_Tri3d_Rewind" data-uid="Hi.Geom.Tri3d.Rewind">
Rewind()
</h3>
<div class="markdown level1 summary"><p>Reverses the order of the triangle's vertices, which flips the normal direction</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void Rewind()</code></pre>
</div>
<a id="Hi_Geom_Tri3d_Rotate_" data-uid="Hi.Geom.Tri3d.Rotate*"></a>
<h3 id="Hi_Geom_Tri3d_Rotate_Hi_Geom_Vec3d_System_Double_" data-uid="Hi.Geom.Tri3d.Rotate(Hi.Geom.Vec3d,System.Double)">
Rotate(Vec3d, double)
</h3>
<div class="markdown level1 summary"><p>Rotates the triangle around the specified axis by the given angle.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d Rotate(Vec3d axis, double rad)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>axis</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>The axis of rotation.</p>
</dd>
<dt><code>rad</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
<dd><p>The angle of rotation in radians.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a></dt>
<dd><p>This triangle after rotation.</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_Set_" data-uid="Hi.Geom.Tri3d.Set*"></a>
<h3 id="Hi_Geom_Tri3d_Set_Hi_Geom_ITri3d_" data-uid="Hi.Geom.Tri3d.Set(Hi.Geom.ITri3d)">
Set(ITri3d)
</h3>
<div class="markdown level1 summary"><p>Sets this triangle's vertices and normal from an ITri3d interface</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d Set(ITri3d t)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>t</code> <a class="xref" href="Hi.Geom.ITri3d.html">ITri3d</a></dt>
<dd><p>The source triangle implementing ITri3d</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a></dt>
<dd><p>This triangle instance</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_Set_" data-uid="Hi.Geom.Tri3d.Set*"></a>
<h3 id="Hi_Geom_Tri3d_Set_Hi_Geom_ITri3d_Hi_Geom_Mat4d_" data-uid="Hi.Geom.Tri3d.Set(Hi.Geom.ITri3d,Hi.Geom.Mat4d)">
Set(ITri3d, Mat4d)
</h3>
<div class="markdown level1 summary"><p>Sets this triangle's vertices and normal from an ITri3d interface and transforms them using a matrix</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d Set(ITri3d t, Mat4d mat)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>t</code> <a class="xref" href="Hi.Geom.ITri3d.html">ITri3d</a></dt>
<dd><p>The source triangle implementing ITri3d</p>
</dd>
<dt><code>mat</code> <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
<dd><p>The transformation matrix to apply</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a></dt>
<dd><p>This triangle instance</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_Set_" data-uid="Hi.Geom.Tri3d.Set*"></a>
<h3 id="Hi_Geom_Tri3d_Set_Hi_Geom_Tri3d_System_Boolean_" data-uid="Hi.Geom.Tri3d.Set(Hi.Geom.Tri3d,System.Boolean)">
Set(Tri3d, bool)
</h3>
<div class="markdown level1 summary"><p>Sets this triangle's vertices and normal from another triangle</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d Set(Tri3d t, bool useRef = false)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>t</code> <a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a></dt>
<dd><p>The source triangle</p>
</dd>
<dt><code>useRef</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd><p>If true, references to the source triangle's vertices and normal are used; otherwise, copies are created</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a></dt>
<dd><p>This triangle instance</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_Set_" data-uid="Hi.Geom.Tri3d.Set*"></a>
<h3 id="Hi_Geom_Tri3d_Set_Hi_Geom_Vec3d_Hi_Geom_Vec3d_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Tri3d.Set(Hi.Geom.Vec3d,Hi.Geom.Vec3d,Hi.Geom.Vec3d)">
Set(Vec3d, Vec3d, Vec3d)
</h3>
<div class="markdown level1 summary"><p>Set value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d Set(Vec3d p0, Vec3d p1, Vec3d p2)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>p0</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>apex0</p>
</dd>
<dt><code>p1</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>apex1</p>
</dd>
<dt><code>p2</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>apex2</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a></dt>
<dd><p>this</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_Set_" data-uid="Hi.Geom.Tri3d.Set*"></a>
<h3 id="Hi_Geom_Tri3d_Set_Hi_Geom_Vec3d_Hi_Geom_Vec3d_Hi_Geom_Vec3d_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Tri3d.Set(Hi.Geom.Vec3d,Hi.Geom.Vec3d,Hi.Geom.Vec3d,Hi.Geom.Vec3d)">
Set(Vec3d, Vec3d, Vec3d, Vec3d)
</h3>
<div class="markdown level1 summary"><p>Sets the triangle's vertices and normal vector</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d Set(Vec3d p0, Vec3d p1, Vec3d p2, Vec3d n)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>p0</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>First vertex</p>
</dd>
<dt><code>p1</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>Second vertex</p>
</dd>
<dt><code>p2</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>Third vertex</p>
</dd>
<dt><code>n</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>Normal vector</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a></dt>
<dd><p>This triangle instance</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_SetOrderForward_" data-uid="Hi.Geom.Tri3d.SetOrderForward*"></a>
<h3 id="Hi_Geom_Tri3d_SetOrderForward_System_Int32_" data-uid="Hi.Geom.Tri3d.SetOrderForward(System.Int32)">
SetOrderForward(int)
</h3>
<div class="markdown level1 summary"><p>Reorders the triangle's vertices to make the specified vertex the first one</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void SetOrderForward(int index)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>index</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>The index of the vertex to make first (0, 1, or 2)</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_ToString_" data-uid="Hi.Geom.Tri3d.ToString*"></a>
<h3 id="Hi_Geom_Tri3d_ToString" data-uid="Hi.Geom.Tri3d.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_Tri3d_Transform_" data-uid="Hi.Geom.Tri3d.Transform*"></a>
<h3 id="Hi_Geom_Tri3d_Transform_Hi_Geom_Mat4d_" data-uid="Hi.Geom.Tri3d.Transform(Hi.Geom.Mat4d)">
Transform(Mat4d)
</h3>
<div class="markdown level1 summary"><p>Transforms the triangle using the specified transformation matrix.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d Transform(Mat4d mat)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>mat</code> <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
<dd><p>The transformation matrix.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a></dt>
<dd><p>This triangle after transformation.</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_Translate_" data-uid="Hi.Geom.Tri3d.Translate*"></a>
<h3 id="Hi_Geom_Tri3d_Translate_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Tri3d.Translate(Hi.Geom.Vec3d)">
Translate(Vec3d)
</h3>
<div class="markdown level1 summary"><p>Translates the triangle by the specified vector.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d Translate(Vec3d v)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>v</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd><p>The translation vector.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a></dt>
<dd><p>This triangle after translation.</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_Translate_" data-uid="Hi.Geom.Tri3d.Translate*"></a>
<h3 id="Hi_Geom_Tri3d_Translate_System_Double_System_Double_System_Double_" data-uid="Hi.Geom.Tri3d.Translate(System.Double,System.Double,System.Double)">
Translate(double, double, double)
</h3>
<div class="markdown level1 summary"><p>Translates the triangle by the specified x, y, and z coordinates.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Tri3d Translate(double x, double y, double z)</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>The x-coordinate of the translation.</p>
</dd>
<dt><code>y</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
<dd><p>The y-coordinate of the translation.</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-coordinate of the translation.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Tri3d.html">Tri3d</a></dt>
<dd><p>This triangle after translation.</p>
</dd>
</dl>
<a id="Hi_Geom_Tri3d_WriteBin_" data-uid="Hi.Geom.Tri3d.WriteBin*"></a>
<h3 id="Hi_Geom_Tri3d_WriteBin_System_IO_BinaryWriter_" data-uid="Hi.Geom.Tri3d.WriteBin(System.IO.BinaryWriter)">
WriteBin(BinaryWriter)
</h3>
<div class="markdown level1 summary"><p>Writes the object's data to a binary stream.</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>The binary writer to write to</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>