This commit is contained in:
2026-01-26 03:40:40 +08:00
parent a847916af6
commit a128d423b9
30 changed files with 163 additions and 125 deletions
@@ -503,7 +503,9 @@ The matrix is rotate along axis with given radian.</p>
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a> class from an enumerable of double values.
Takes the first 16 values from the enumerable.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
@@ -513,7 +515,8 @@ The matrix is rotate along axis with given radian.</p>
<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>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
<dd></dd>
<dd><p>The enumerable collection of double values.</p>
</dd>
</dl>
@@ -1513,7 +1516,8 @@ The value is Vec3d(m[12], m[13], m[14]).</p>
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 summary"><p>Fixes floating-point values that are close to zero by setting them to exactly zero.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
@@ -1523,13 +1527,15 @@ The value is Vec3d(m[12], m[13], m[14]).</p>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>floatingZeroTolerance</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
<dd></dd>
<dd><p>The tolerance below which values are considered zero. Default is 1e-12.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
<dd></dd>
<dd><p>This matrix instance for method chaining.</p>
</dd>
</dl>
@@ -1654,7 +1660,8 @@ The value is Vec3d(m[12], m[13], m[14]).</p>
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 summary"><p>Creates a new matrix with all elements transformed by the specified function.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
@@ -1664,13 +1671,15 @@ The value is Vec3d(m[12], m[13], m[14]).</p>
<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>&lt;<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>&gt;</dt>
<dd></dd>
<dd><p>The function to apply to each matrix element.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
<dd></dd>
<dd><p>A new matrix with transformed elements.</p>
</dd>
</dl>
@@ -2403,7 +2412,8 @@ The format is <code>{0,1,2,3,...,15}</code></p>
</h3>
<div class="markdown level1 summary"></div>
<div class="markdown level1 summary"><p>Transforms all matrix elements in-place using the specified transformation function.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
@@ -2413,13 +2423,15 @@ The format is <code>{0,1,2,3,...,15}</code></p>
<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>&lt;<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>&gt;</dt>
<dd></dd>
<dd><p>The function to apply to each matrix element.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
<dd></dd>
<dd><p>This matrix instance for method chaining.</p>
</dd>
</dl>