Deploying to docs from @ snowykami/mbcp@10d05375a4 ๐Ÿš€

This commit is contained in:
่ฟœ้‡ŽๅƒๆŸ 2024-09-04 11:22:16 +00:00
parent 7d5136952b
commit 7daa324220
247 changed files with 612 additions and 612 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{_ as e,c as a,o as t,a4 as c}from"./chunks/framework.DpC1ZpOZ.js";const f=JSON.parse('{"title":"mbcp","description":"","frontmatter":{"title":"mbcp","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/index.md","filePath":"zh/api/index.md"}'),p={name:"api/index.md"},o=c('<h1 id="mbcp" tabindex="-1">mbcp <a class="header-anchor" href="#mbcp" aria-label="Permalink to &quot;mbcp&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๆ˜ฏไธปๆจกๅ—๏ผŒๆไพ›ไบ†ไธ€ไบ›ๅทฅๅ…ท ๅฏๅฏผๅ…ฅ</p><p><a href="./mp_math/"><code>mbcp.mp_math</code></a>๏ผšๆ•ฐๅญฆๅทฅๅ…ท</p><p><a href="./particle/"><code>mbcp.particle</code></a>๏ผš็ฒ’ๅญ็”Ÿๆˆๅทฅๅ…ท</p><p><a href="./presets/"><code>mbcp.presets</code></a>๏ผš้ข„่ฎพ</p>',5),r=[o];function s(d,_,i,n,m,l){return t(),a("div",null,r)}const b=e(p,[["render",s]]);export{f as __pageData,b as default};
import{_ as e,c as a,o as t,a4 as c}from"./chunks/framework.DpC1ZpOZ.js";const f=JSON.parse('{"title":"mbcp","description":"","frontmatter":{"title":"mbcp","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/index.md","filePath":"zh/api/index.md"}'),p={name:"api/index.md"},o=c('<h1 id="ๆจกๅ—-mbcp" tabindex="-1"><strong>ๆจกๅ—</strong> <code>mbcp</code> <a class="header-anchor" href="#ๆจกๅ—-mbcp" aria-label="Permalink to &quot;**ๆจกๅ—** `mbcp`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๆ˜ฏไธปๆจกๅ—๏ผŒๆไพ›ไบ†ไธ€ไบ›ๅทฅๅ…ท ๅฏๅฏผๅ…ฅ</p><p><a href="./mp_math/"><code>mbcp.mp_math</code></a>๏ผšๆ•ฐๅญฆๅทฅๅ…ท</p><p><a href="./particle/"><code>mbcp.particle</code></a>๏ผš็ฒ’ๅญ็”Ÿๆˆๅทฅๅ…ท</p><p><a href="./presets/"><code>mbcp.presets</code></a>๏ผš้ข„่ฎพ</p>',5),r=[o];function s(d,_,i,n,m,l){return t(),a("div",null,r)}const b=e(p,[["render",s]]);export{f as __pageData,b as default};

View File

@ -1,4 +1,4 @@
import{_ as s,c as a,o as i,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const c=JSON.parse('{"title":"mbcp.mp_math.angle","description":"","frontmatter":{"title":"mbcp.mp_math.angle","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/angle.md","filePath":"zh/api/mp_math/angle.md"}'),t={name:"api/mp_math/angle.md"},e=n(`<h1 id="mbcp-mp-math-angle" tabindex="-1">mbcp.mp_math.angle <a class="header-anchor" href="#mbcp-mp-math-angle" aria-label="Permalink to &quot;mbcp.mp_math.angle&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†่ง’ๅบฆ็›ธๅ…ณ็š„็ฑป</p><h3 id="class-angle" tabindex="-1"><em><strong>class</strong></em> <code>Angle</code> <a class="header-anchor" href="#class-angle" aria-label="Permalink to &quot;***class*** \`Angle\`&quot;">โ€‹</a></h3><h3 id="class-anyangle-angle" tabindex="-1"><em><strong>class</strong></em> <code>AnyAngle(Angle)</code> <a class="header-anchor" href="#class-anyangle-angle" aria-label="Permalink to &quot;***class*** \`AnyAngle(Angle)\`&quot;">โ€‹</a></h3><h4 id="method-init-self-value-float-is-radian-bool-false" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, value: float, is_radian: bool = False)</code> <a class="header-anchor" href="#method-init-self-value-float-is-radian-bool-false" aria-label="Permalink to &quot;***method*** \`__init__(self, value: float, is_radian: bool = False)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: ไปปๆ„่ง’ๅบฆใ€‚</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>value: ่ง’ๅบฆๆˆ–ๅผงๅบฆๅ€ผ</li><li>is_radian: ๆ˜ฏๅฆไธบๅผงๅบฆ๏ผŒ้ป˜่ฎคไธบๅฆ</li></ul></blockquote><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/angle.py#L17" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, value: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, is_radian: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">bool</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">False</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
import{_ as s,c as a,o as i,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const c=JSON.parse('{"title":"mbcp.mp_math.angle","description":"","frontmatter":{"title":"mbcp.mp_math.angle","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/angle.md","filePath":"zh/api/mp_math/angle.md"}'),t={name:"api/mp_math/angle.md"},e=n(`<h1 id="ๆจกๅ—-mbcp-mp-math-angle" tabindex="-1"><strong>ๆจกๅ—</strong> <code>mbcp.mp_math.angle</code> <a class="header-anchor" href="#ๆจกๅ—-mbcp-mp-math-angle" aria-label="Permalink to &quot;**ๆจกๅ—** \`mbcp.mp_math.angle\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†่ง’ๅบฆ็›ธๅ…ณ็š„็ฑป</p><h3 id="class-angle" tabindex="-1"><em><strong>class</strong></em> <code>Angle</code> <a class="header-anchor" href="#class-angle" aria-label="Permalink to &quot;***class*** \`Angle\`&quot;">โ€‹</a></h3><h3 id="class-anyangle-angle" tabindex="-1"><em><strong>class</strong></em> <code>AnyAngle(Angle)</code> <a class="header-anchor" href="#class-anyangle-angle" aria-label="Permalink to &quot;***class*** \`AnyAngle(Angle)\`&quot;">โ€‹</a></h3><h4 id="method-init-self-value-float-is-radian-bool-false" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, value: float, is_radian: bool = False)</code> <a class="header-anchor" href="#method-init-self-value-float-is-radian-bool-false" aria-label="Permalink to &quot;***method*** \`__init__(self, value: float, is_radian: bool = False)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: ไปปๆ„่ง’ๅบฆใ€‚</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>value: ่ง’ๅบฆๆˆ–ๅผงๅบฆๅ€ผ</li><li>is_radian: ๆ˜ฏๅฆไธบๅผงๅบฆ๏ผŒ้ป˜่ฎคไธบๅฆ</li></ul></blockquote><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/angle.py#L17" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, value: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, is_radian: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">bool</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">False</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ไปปๆ„่ง’ๅบฆใ€‚</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>

View File

@ -1 +1 @@
import{_ as a,c as o,o as t,a4 as e}from"./chunks/framework.DpC1ZpOZ.js";const u=JSON.parse('{"title":"mbcp.mp_math.const","description":"","frontmatter":{"title":"mbcp.mp_math.const","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/const.md","filePath":"zh/api/mp_math/const.md"}'),r={name:"api/mp_math/const.md"},l=e('<h1 id="mbcp-mp-math-const" tabindex="-1">mbcp.mp_math.const <a class="header-anchor" href="#mbcp-mp-math-const" aria-label="Permalink to &quot;mbcp.mp_math.const&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ€ไบ›ๅธธ็”จ็š„ๅธธ้‡</p><h3 id="var-pi" tabindex="-1">var <code>PI</code> <a class="header-anchor" href="#var-pi" aria-label="Permalink to &quot;var `PI`&quot;">โ€‹</a></h3><ul><li><p><strong>่ฏดๆ˜Ž</strong>: ๅธธ้‡ ฯ€</p></li><li><p><strong>้ป˜่ฎคๅ€ผ</strong>: <code>math.pi</code></p></li></ul><h3 id="var-e" tabindex="-1">var <code>E</code> <a class="header-anchor" href="#var-e" aria-label="Permalink to &quot;var `E`&quot;">โ€‹</a></h3><ul><li><p><strong>่ฏดๆ˜Ž</strong>: ่‡ช็„ถๅฏนๆ•ฐ็š„ๅบ• exp(1)</p></li><li><p><strong>้ป˜่ฎคๅ€ผ</strong>: <code>math.e</code></p></li></ul><h3 id="var-golden-ratio" tabindex="-1">var <code>GOLDEN_RATIO</code> <a class="header-anchor" href="#var-golden-ratio" aria-label="Permalink to &quot;var `GOLDEN_RATIO`&quot;">โ€‹</a></h3><ul><li><p><strong>่ฏดๆ˜Ž</strong>: ้ป„้‡‘ๅˆ†ๅ‰ฒๆฏ”</p></li><li><p><strong>้ป˜่ฎคๅ€ผ</strong>: <code>(1 + math.sqrt(5)) / 2</code></p></li></ul><h3 id="var-gamma" tabindex="-1">var <code>GAMMA</code> <a class="header-anchor" href="#var-gamma" aria-label="Permalink to &quot;var `GAMMA`&quot;">โ€‹</a></h3><ul><li><p><strong>่ฏดๆ˜Ž</strong>: ๆฌงๆ‹‰ๅธธๆ•ฐ</p></li><li><p><strong>้ป˜่ฎคๅ€ผ</strong>: <code>0.5772156649015329</code></p></li></ul><h3 id="var-epsilon" tabindex="-1">var <code>EPSILON</code> <a class="header-anchor" href="#var-epsilon" aria-label="Permalink to &quot;var `EPSILON`&quot;">โ€‹</a></h3><ul><li><p><strong>่ฏดๆ˜Ž</strong>: ็ฒพๅบฆ่ฏฏๅทฎ</p></li><li><p><strong>้ป˜่ฎคๅ€ผ</strong>: <code>0.0001</code></p></li></ul><h3 id="var-approx" tabindex="-1">var <code>APPROX</code> <a class="header-anchor" href="#var-approx" aria-label="Permalink to &quot;var `APPROX`&quot;">โ€‹</a></h3><ul><li><p><strong>่ฏดๆ˜Ž</strong>: ็บฆ็ญ‰ไบŽๅˆคๅฎš่ฏฏๅทฎ</p></li><li><p><strong>้ป˜่ฎคๅ€ผ</strong>: <code>0.001</code></p></li></ul>',14),n=[l];function i(s,c,p,d,h,m){return t(),o("div",null,n)}const g=a(r,[["render",i]]);export{u as __pageData,g as default};
import{_ as a,c as o,o as t,a4 as e}from"./chunks/framework.DpC1ZpOZ.js";const g=JSON.parse('{"title":"mbcp.mp_math.const","description":"","frontmatter":{"title":"mbcp.mp_math.const","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/const.md","filePath":"zh/api/mp_math/const.md"}'),r={name:"api/mp_math/const.md"},l=e('<h1 id="ๆจกๅ—-mbcp-mp-math-const" tabindex="-1"><strong>ๆจกๅ—</strong> <code>mbcp.mp_math.const</code> <a class="header-anchor" href="#ๆจกๅ—-mbcp-mp-math-const" aria-label="Permalink to &quot;**ๆจกๅ—** `mbcp.mp_math.const`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ€ไบ›ๅธธ็”จ็š„ๅธธ้‡</p><h3 id="var-pi" tabindex="-1">var <code>PI</code> <a class="header-anchor" href="#var-pi" aria-label="Permalink to &quot;var `PI`&quot;">โ€‹</a></h3><ul><li><p><strong>่ฏดๆ˜Ž</strong>: ๅธธ้‡ ฯ€</p></li><li><p><strong>้ป˜่ฎคๅ€ผ</strong>: <code>math.pi</code></p></li></ul><h3 id="var-e" tabindex="-1">var <code>E</code> <a class="header-anchor" href="#var-e" aria-label="Permalink to &quot;var `E`&quot;">โ€‹</a></h3><ul><li><p><strong>่ฏดๆ˜Ž</strong>: ่‡ช็„ถๅฏนๆ•ฐ็š„ๅบ• exp(1)</p></li><li><p><strong>้ป˜่ฎคๅ€ผ</strong>: <code>math.e</code></p></li></ul><h3 id="var-golden-ratio" tabindex="-1">var <code>GOLDEN_RATIO</code> <a class="header-anchor" href="#var-golden-ratio" aria-label="Permalink to &quot;var `GOLDEN_RATIO`&quot;">โ€‹</a></h3><ul><li><p><strong>่ฏดๆ˜Ž</strong>: ้ป„้‡‘ๅˆ†ๅ‰ฒๆฏ”</p></li><li><p><strong>้ป˜่ฎคๅ€ผ</strong>: <code>(1 + math.sqrt(5)) / 2</code></p></li></ul><h3 id="var-gamma" tabindex="-1">var <code>GAMMA</code> <a class="header-anchor" href="#var-gamma" aria-label="Permalink to &quot;var `GAMMA`&quot;">โ€‹</a></h3><ul><li><p><strong>่ฏดๆ˜Ž</strong>: ๆฌงๆ‹‰ๅธธๆ•ฐ</p></li><li><p><strong>้ป˜่ฎคๅ€ผ</strong>: <code>0.5772156649015329</code></p></li></ul><h3 id="var-epsilon" tabindex="-1">var <code>EPSILON</code> <a class="header-anchor" href="#var-epsilon" aria-label="Permalink to &quot;var `EPSILON`&quot;">โ€‹</a></h3><ul><li><p><strong>่ฏดๆ˜Ž</strong>: ็ฒพๅบฆ่ฏฏๅทฎ</p></li><li><p><strong>้ป˜่ฎคๅ€ผ</strong>: <code>0.0001</code></p></li></ul><h3 id="var-approx" tabindex="-1">var <code>APPROX</code> <a class="header-anchor" href="#var-approx" aria-label="Permalink to &quot;var `APPROX`&quot;">โ€‹</a></h3><ul><li><p><strong>่ฏดๆ˜Ž</strong>: ็บฆ็ญ‰ไบŽๅˆคๅฎš่ฏฏๅทฎ</p></li><li><p><strong>้ป˜่ฎคๅ€ผ</strong>: <code>0.001</code></p></li></ul>',14),n=[l];function i(s,c,p,d,h,m){return t(),o("div",null,n)}const u=a(r,[["render",i]]);export{g as __pageData,u as default};

View File

@ -1 +1 @@
import{_ as a,c as o,o as t,a4 as e}from"./chunks/framework.DpC1ZpOZ.js";const u=JSON.parse('{"title":"mbcp.mp_math.const","description":"","frontmatter":{"title":"mbcp.mp_math.const","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/const.md","filePath":"zh/api/mp_math/const.md"}'),r={name:"api/mp_math/const.md"},l=e("",14),n=[l];function i(s,c,p,d,h,m){return t(),o("div",null,n)}const g=a(r,[["render",i]]);export{u as __pageData,g as default};
import{_ as a,c as o,o as t,a4 as e}from"./chunks/framework.DpC1ZpOZ.js";const g=JSON.parse('{"title":"mbcp.mp_math.const","description":"","frontmatter":{"title":"mbcp.mp_math.const","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/const.md","filePath":"zh/api/mp_math/const.md"}'),r={name:"api/mp_math/const.md"},l=e("",14),n=[l];function i(s,c,p,d,h,m){return t(),o("div",null,n)}const u=a(r,[["render",i]]);export{g as __pageData,u as default};

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const u=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/equation.md","filePath":"zh/api/mp_math/equation.md"}'),t={name:"api/mp_math/equation.md"},l=n(`<h1 id="mbcp-mp-math-equation" tabindex="-1">mbcp.mp_math.equation <a class="header-anchor" href="#mbcp-mp-math-equation" aria-label="Permalink to &quot;mbcp.mp_math.equation&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ๆ–น็จ‹็›ธๅ…ณ็š„็ฑปๅ’Œๅ‡ฝๆ•ฐไปฅๅŠไธ€ไบ›ๅธธ็”จ็š„ๆ•ฐๅญฆๅ‡ฝๆ•ฐ</p><h3 id="class-curveequation" tabindex="-1"><em><strong>class</strong></em> <code>CurveEquation</code> <a class="header-anchor" href="#class-curveequation" aria-label="Permalink to &quot;***class*** \`CurveEquation\`&quot;">โ€‹</a></h3><h4 id="method-init-self-x-func-onevarfunc-y-func-onevarfunc-z-func-onevarfunc" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc)</code> <a class="header-anchor" href="#method-init-self-x-func-onevarfunc-y-func-onevarfunc-z-func-onevarfunc" aria-label="Permalink to &quot;***method*** \`__init__(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: ๆ›ฒ็บฟๆ–น็จ‹ใ€‚</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>x_func (<a href="./mp_math_typing.html#var-onevarfunc"><code>OneVarFunc</code></a>): xๅ‡ฝๆ•ฐ</li><li>y_func (<a href="./mp_math_typing.html#var-onevarfunc"><code>OneVarFunc</code></a>): yๅ‡ฝๆ•ฐ</li><li>z_func (<a href="./mp_math_typing.html#var-onevarfunc"><code>OneVarFunc</code></a>): zๅ‡ฝๆ•ฐ</li></ul></blockquote><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/equation.py#L12" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc):</span></span>
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const u=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/equation.md","filePath":"zh/api/mp_math/equation.md"}'),t={name:"api/mp_math/equation.md"},l=n(`<h1 id="ๆจกๅ—-mbcp-mp-math-equation" tabindex="-1"><strong>ๆจกๅ—</strong> <code>mbcp.mp_math.equation</code> <a class="header-anchor" href="#ๆจกๅ—-mbcp-mp-math-equation" aria-label="Permalink to &quot;**ๆจกๅ—** \`mbcp.mp_math.equation\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ๆ–น็จ‹็›ธๅ…ณ็š„็ฑปๅ’Œๅ‡ฝๆ•ฐไปฅๅŠไธ€ไบ›ๅธธ็”จ็š„ๆ•ฐๅญฆๅ‡ฝๆ•ฐ</p><h3 id="class-curveequation" tabindex="-1"><em><strong>class</strong></em> <code>CurveEquation</code> <a class="header-anchor" href="#class-curveequation" aria-label="Permalink to &quot;***class*** \`CurveEquation\`&quot;">โ€‹</a></h3><h4 id="method-init-self-x-func-onevarfunc-y-func-onevarfunc-z-func-onevarfunc" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc)</code> <a class="header-anchor" href="#method-init-self-x-func-onevarfunc-y-func-onevarfunc-z-func-onevarfunc" aria-label="Permalink to &quot;***method*** \`__init__(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: ๆ›ฒ็บฟๆ–น็จ‹ใ€‚</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>x_func (<a href="./mp_math_typing.html#var-onevarfunc"><code>OneVarFunc</code></a>): xๅ‡ฝๆ•ฐ</li><li>y_func (<a href="./mp_math_typing.html#var-onevarfunc"><code>OneVarFunc</code></a>): yๅ‡ฝๆ•ฐ</li><li>z_func (<a href="./mp_math_typing.html#var-onevarfunc"><code>OneVarFunc</code></a>): zๅ‡ฝๆ•ฐ</li></ul></blockquote><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/equation.py#L12" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ๆ›ฒ็บฟๆ–น็จ‹ใ€‚</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>

View File

@ -1 +1 @@
import{_ as e,c as a,o as t,a4 as c}from"./chunks/framework.DpC1ZpOZ.js";const f=JSON.parse('{"title":"mbcp.mp_math","description":"","frontmatter":{"title":"mbcp.mp_math","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/mp_math/index.md","filePath":"zh/api/mp_math/index.md"}'),l={name:"api/mp_math/index.md"},o=c('<h1 id="mbcp-mp-math" tabindex="-1">mbcp.mp_math <a class="header-anchor" href="#mbcp-mp-math" aria-label="Permalink to &quot;mbcp.mp_math&quot;">โ€‹</a></h1><p>ๆœฌๅŒ…ๅฎšไน‰ไบ†ไธ€ไบ›ๅธธ็”จ็š„ๅฏผๅ…ฅ๏ผŒๅฏ็›ดๆŽฅไปŽ<code>mbcp.mp_math</code>ๅฏผๅ…ฅไฝฟ็”จ ๅฏผๅ…ฅ็š„็ฑปๆœ‰๏ผš</p><ul><li><a href="./angle.html#class-anyangle"><code>AnyAngle</code></a>๏ผšไปปๆ„่ง’ๅบฆ</li><li><a href="./equation.html#class-curveequation"><code>CurveEquation</code></a>๏ผšๆ›ฒ็บฟๆ–น็จ‹</li><li><a href="./line.html#class-line3"><code>Line3</code></a>๏ผšไธ‰็ปด็›ด็บฟ</li><li><a href="./plane.html#class-plane3"><code>Plane3</code></a>๏ผšไธ‰็ปดๅนณ้ข</li><li><a href="./point.html#class-point3"><code>Point3</code></a>๏ผšไธ‰็ปด็‚น</li><li><a href="./segment.html#class-segment3"><code>Segment3</code></a>๏ผšไธ‰็ปด็บฟๆฎต</li><li><a href="./vector.html#class-vector3"><code>Vector3</code></a>๏ผšไธ‰็ปดๅ‘้‡</li></ul>',3),i=[o];function m(n,s,d,p,r,h){return t(),a("div",null,i)}const u=e(l,[["render",m]]);export{f as __pageData,u as default};
import{_ as e,c as a,o as t,a4 as c}from"./chunks/framework.DpC1ZpOZ.js";const f=JSON.parse('{"title":"mbcp.mp_math","description":"","frontmatter":{"title":"mbcp.mp_math","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/mp_math/index.md","filePath":"zh/api/mp_math/index.md"}'),l={name:"api/mp_math/index.md"},o=c('<h1 id="ๆจกๅ—-mbcp-mp-math" tabindex="-1"><strong>ๆจกๅ—</strong> <code>mbcp.mp_math</code> <a class="header-anchor" href="#ๆจกๅ—-mbcp-mp-math" aria-label="Permalink to &quot;**ๆจกๅ—** `mbcp.mp_math`&quot;">โ€‹</a></h1><p>ๆœฌๅŒ…ๅฎšไน‰ไบ†ไธ€ไบ›ๅธธ็”จ็š„ๅฏผๅ…ฅ๏ผŒๅฏ็›ดๆŽฅไปŽ<code>mbcp.mp_math</code>ๅฏผๅ…ฅไฝฟ็”จ ๅฏผๅ…ฅ็š„็ฑปๆœ‰๏ผš</p><ul><li><a href="./angle.html#class-anyangle"><code>AnyAngle</code></a>๏ผšไปปๆ„่ง’ๅบฆ</li><li><a href="./equation.html#class-curveequation"><code>CurveEquation</code></a>๏ผšๆ›ฒ็บฟๆ–น็จ‹</li><li><a href="./line.html#class-line3"><code>Line3</code></a>๏ผšไธ‰็ปด็›ด็บฟ</li><li><a href="./plane.html#class-plane3"><code>Plane3</code></a>๏ผšไธ‰็ปดๅนณ้ข</li><li><a href="./point.html#class-point3"><code>Point3</code></a>๏ผšไธ‰็ปด็‚น</li><li><a href="./segment.html#class-segment3"><code>Segment3</code></a>๏ผšไธ‰็ปด็บฟๆฎต</li><li><a href="./vector.html#class-vector3"><code>Vector3</code></a>๏ผšไธ‰็ปดๅ‘้‡</li></ul>',3),i=[o];function m(n,s,d,p,r,h){return t(),a("div",null,i)}const u=e(l,[["render",m]]);export{f as __pageData,u as default};

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const F=JSON.parse('{"title":"mbcp.mp_math.line","description":"","frontmatter":{"title":"mbcp.mp_math.line","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/line.md","filePath":"zh/api/mp_math/line.md"}'),t={name:"api/mp_math/line.md"},l=n(`<h1 id="mbcp-mp-math-line" tabindex="-1">mbcp.mp_math.line <a class="header-anchor" href="#mbcp-mp-math-line" aria-label="Permalink to &quot;mbcp.mp_math.line&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็š„็›ด็บฟ็ฑป</p><h3 id="class-line3" tabindex="-1"><em><strong>class</strong></em> <code>Line3</code> <a class="header-anchor" href="#class-line3" aria-label="Permalink to &quot;***class*** \`Line3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-point-point3-direction-vector3" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, point: Point3, direction: Vector3)</code> <a class="header-anchor" href="#method-init-self-point-point3-direction-vector3" aria-label="Permalink to &quot;***method*** \`__init__(self, point: Point3, direction: Vector3)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: ไธ‰็ปด็ฉบ้—ดไธญ็š„็›ด็บฟใ€‚็”ฑไธ€ไธช็‚นๅ’Œไธ€ไธชๆ–นๅ‘ๅ‘้‡็กฎๅฎšใ€‚</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>point (<a href="./point.html#class-point3"><code>Point3</code></a>): ็›ด็บฟไธŠ็š„ไธ€็‚น</li><li>direction (<a href="./vector.html#class-vector3"><code>Vector3</code></a>): ๆ–นๅ‘ๅ‘้‡</li></ul></blockquote><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/line.py#L19" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, point: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Point3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, direction: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Vector3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const F=JSON.parse('{"title":"mbcp.mp_math.line","description":"","frontmatter":{"title":"mbcp.mp_math.line","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/line.md","filePath":"zh/api/mp_math/line.md"}'),t={name:"api/mp_math/line.md"},l=n(`<h1 id="ๆจกๅ—-mbcp-mp-math-line" tabindex="-1"><strong>ๆจกๅ—</strong> <code>mbcp.mp_math.line</code> <a class="header-anchor" href="#ๆจกๅ—-mbcp-mp-math-line" aria-label="Permalink to &quot;**ๆจกๅ—** \`mbcp.mp_math.line\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็š„็›ด็บฟ็ฑป</p><h3 id="class-line3" tabindex="-1"><em><strong>class</strong></em> <code>Line3</code> <a class="header-anchor" href="#class-line3" aria-label="Permalink to &quot;***class*** \`Line3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-point-point3-direction-vector3" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, point: Point3, direction: Vector3)</code> <a class="header-anchor" href="#method-init-self-point-point3-direction-vector3" aria-label="Permalink to &quot;***method*** \`__init__(self, point: Point3, direction: Vector3)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: ไธ‰็ปด็ฉบ้—ดไธญ็š„็›ด็บฟใ€‚็”ฑไธ€ไธช็‚นๅ’Œไธ€ไธชๆ–นๅ‘ๅ‘้‡็กฎๅฎšใ€‚</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>point (<a href="./point.html#class-point3"><code>Point3</code></a>): ็›ด็บฟไธŠ็š„ไธ€็‚น</li><li>direction (<a href="./vector.html#class-vector3"><code>Vector3</code></a>): ๆ–นๅ‘ๅ‘้‡</li></ul></blockquote><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/line.py#L19" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, point: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Point3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, direction: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Vector3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ไธ‰็ปด็ฉบ้—ดไธญ็š„็›ด็บฟใ€‚็”ฑไธ€ไธช็‚นๅ’Œไธ€ไธชๆ–นๅ‘ๅ‘้‡็กฎๅฎšใ€‚</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const y=JSON.parse('{"title":"mbcp.mp_math.plane","description":"","frontmatter":{"title":"mbcp.mp_math.plane","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/plane.md","filePath":"zh/api/mp_math/plane.md"}'),l={name:"api/mp_math/plane.md"},t=n(`<h1 id="mbcp-mp-math-plane" tabindex="-1">mbcp.mp_math.plane <a class="header-anchor" href="#mbcp-mp-math-plane" aria-label="Permalink to &quot;mbcp.mp_math.plane&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็š„ๅนณ้ข็ฑป</p><h3 id="class-plane3" tabindex="-1"><em><strong>class</strong></em> <code>Plane3</code> <a class="header-anchor" href="#class-plane3" aria-label="Permalink to &quot;***class*** \`Plane3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-a-float-b-float-c-float-d-float" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, a: float, b: float, c: float, d: float)</code> <a class="header-anchor" href="#method-init-self-a-float-b-float-c-float-d-float" aria-label="Permalink to &quot;***method*** \`__init__(self, a: float, b: float, c: float, d: float)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: ๅนณ้ขๆ–น็จ‹๏ผšax + by + cz + d = 0</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>a (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): x็ณปๆ•ฐ</li><li>b (<code>float</code>): y็ณปๆ•ฐ</li><li>c (<code>float</code>): z็ณปๆ•ฐ</li><li>d (<code>float</code>): ๅธธๆ•ฐ้กน</li></ul></blockquote><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/plane.py#L20" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, a: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, b: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, c: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, d: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const y=JSON.parse('{"title":"mbcp.mp_math.plane","description":"","frontmatter":{"title":"mbcp.mp_math.plane","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/plane.md","filePath":"zh/api/mp_math/plane.md"}'),l={name:"api/mp_math/plane.md"},t=n(`<h1 id="ๆจกๅ—-mbcp-mp-math-plane" tabindex="-1"><strong>ๆจกๅ—</strong> <code>mbcp.mp_math.plane</code> <a class="header-anchor" href="#ๆจกๅ—-mbcp-mp-math-plane" aria-label="Permalink to &quot;**ๆจกๅ—** \`mbcp.mp_math.plane\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็š„ๅนณ้ข็ฑป</p><h3 id="class-plane3" tabindex="-1"><em><strong>class</strong></em> <code>Plane3</code> <a class="header-anchor" href="#class-plane3" aria-label="Permalink to &quot;***class*** \`Plane3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-a-float-b-float-c-float-d-float" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, a: float, b: float, c: float, d: float)</code> <a class="header-anchor" href="#method-init-self-a-float-b-float-c-float-d-float" aria-label="Permalink to &quot;***method*** \`__init__(self, a: float, b: float, c: float, d: float)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: ๅนณ้ขๆ–น็จ‹๏ผšax + by + cz + d = 0</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>a (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): x็ณปๆ•ฐ</li><li>b (<code>float</code>): y็ณปๆ•ฐ</li><li>c (<code>float</code>): z็ณปๆ•ฐ</li><li>d (<code>float</code>): ๅธธๆ•ฐ้กน</li></ul></blockquote><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/plane.py#L20" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, a: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, b: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, c: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, d: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ๅนณ้ขๆ–น็จ‹๏ผšax + by + cz + d = 0</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const E=JSON.parse('{"title":"mbcp.mp_math.point","description":"","frontmatter":{"title":"mbcp.mp_math.point","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/point.md","filePath":"zh/api/mp_math/point.md"}'),n={name:"api/mp_math/point.md"},h=t(`<h1 id="mbcp-mp-math-point" tabindex="-1">mbcp.mp_math.point <a class="header-anchor" href="#mbcp-mp-math-point" aria-label="Permalink to &quot;mbcp.mp_math.point&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็‚น็š„็ฑปใ€‚</p><h3 id="class-point3" tabindex="-1"><em><strong>class</strong></em> <code>Point3</code> <a class="header-anchor" href="#class-point3" aria-label="Permalink to &quot;***class*** \`Point3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-x-float-y-float-z-float" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, x: float, y: float, z: float)</code> <a class="header-anchor" href="#method-init-self-x-float-y-float-z-float" aria-label="Permalink to &quot;***method*** \`__init__(self, x: float, y: float, z: float)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: ็ฌ›ๅกๅฐ”ๅๆ ‡็ณปไธญ็š„็‚นใ€‚</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>x (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): x ๅๆ ‡</li><li>y (<code>float</code>): y ๅๆ ‡</li><li>z (<code>float</code>): z ๅๆ ‡</li></ul></blockquote><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/point.py#L15" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, x: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, y: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, z: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const E=JSON.parse('{"title":"mbcp.mp_math.point","description":"","frontmatter":{"title":"mbcp.mp_math.point","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/point.md","filePath":"zh/api/mp_math/point.md"}'),n={name:"api/mp_math/point.md"},h=t(`<h1 id="ๆจกๅ—-mbcp-mp-math-point" tabindex="-1"><strong>ๆจกๅ—</strong> <code>mbcp.mp_math.point</code> <a class="header-anchor" href="#ๆจกๅ—-mbcp-mp-math-point" aria-label="Permalink to &quot;**ๆจกๅ—** \`mbcp.mp_math.point\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็‚น็š„็ฑปใ€‚</p><h3 id="class-point3" tabindex="-1"><em><strong>class</strong></em> <code>Point3</code> <a class="header-anchor" href="#class-point3" aria-label="Permalink to &quot;***class*** \`Point3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-x-float-y-float-z-float" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, x: float, y: float, z: float)</code> <a class="header-anchor" href="#method-init-self-x-float-y-float-z-float" aria-label="Permalink to &quot;***method*** \`__init__(self, x: float, y: float, z: float)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: ็ฌ›ๅกๅฐ”ๅๆ ‡็ณปไธญ็š„็‚นใ€‚</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>x (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): x ๅๆ ‡</li><li>y (<code>float</code>): y ๅๆ ‡</li><li>z (<code>float</code>): z ๅๆ ‡</li></ul></blockquote><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/point.py#L15" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, x: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, y: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, z: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ็ฌ›ๅกๅฐ”ๅๆ ‡็ณปไธญ็š„็‚นใ€‚</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const F=JSON.parse('{"title":"mbcp.mp_math.segment","description":"","frontmatter":{"title":"mbcp.mp_math.segment","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/segment.md","filePath":"zh/api/mp_math/segment.md"}'),t={name:"api/mp_math/segment.md"},p=n(`<h1 id="mbcp-mp-math-segment" tabindex="-1">mbcp.mp_math.segment <a class="header-anchor" href="#mbcp-mp-math-segment" aria-label="Permalink to &quot;mbcp.mp_math.segment&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็š„็บฟๆฎต็ฑป</p><h3 id="class-segment3" tabindex="-1"><em><strong>class</strong></em> <code>Segment3</code> <a class="header-anchor" href="#class-segment3" aria-label="Permalink to &quot;***class*** \`Segment3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-p1-point3-p2-point3" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, p1: Point3, p2: Point3)</code> <a class="header-anchor" href="#method-init-self-p1-point3-p2-point3" aria-label="Permalink to &quot;***method*** \`__init__(self, p1: Point3, p2: Point3)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: ไธ‰็ปด็ฉบ้—ดไธญ็š„็บฟๆฎตใ€‚</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>p1 (<a href="./point.html#class-point3"><code>Point3</code></a>): ็บฟๆฎต็š„ไธ€ไธช็ซฏ็‚น</li><li>p2 (<a href="./point.html#class-point3"><code>Point3</code></a>): ็บฟๆฎต็š„ๅฆไธ€ไธช็ซฏ็‚น</li></ul></blockquote><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/segment.py#L14" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, p1: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Point3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, p2: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Point3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const F=JSON.parse('{"title":"mbcp.mp_math.segment","description":"","frontmatter":{"title":"mbcp.mp_math.segment","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/segment.md","filePath":"zh/api/mp_math/segment.md"}'),t={name:"api/mp_math/segment.md"},p=n(`<h1 id="ๆจกๅ—-mbcp-mp-math-segment" tabindex="-1"><strong>ๆจกๅ—</strong> <code>mbcp.mp_math.segment</code> <a class="header-anchor" href="#ๆจกๅ—-mbcp-mp-math-segment" aria-label="Permalink to &quot;**ๆจกๅ—** \`mbcp.mp_math.segment\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็š„็บฟๆฎต็ฑป</p><h3 id="class-segment3" tabindex="-1"><em><strong>class</strong></em> <code>Segment3</code> <a class="header-anchor" href="#class-segment3" aria-label="Permalink to &quot;***class*** \`Segment3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-p1-point3-p2-point3" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, p1: Point3, p2: Point3)</code> <a class="header-anchor" href="#method-init-self-p1-point3-p2-point3" aria-label="Permalink to &quot;***method*** \`__init__(self, p1: Point3, p2: Point3)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: ไธ‰็ปด็ฉบ้—ดไธญ็š„็บฟๆฎตใ€‚</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>p1 (<a href="./point.html#class-point3"><code>Point3</code></a>): ็บฟๆฎต็š„ไธ€ไธช็ซฏ็‚น</li><li>p2 (<a href="./point.html#class-point3"><code>Point3</code></a>): ็บฟๆฎต็š„ๅฆไธ€ไธช็ซฏ็‚น</li></ul></blockquote><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/segment.py#L14" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, p1: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Point3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, p2: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Point3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ไธ‰็ปด็ฉบ้—ดไธญ็š„็บฟๆฎตใ€‚</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
@ -12,4 +12,4 @@ import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const F
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;้•ฟๅบฆ&#39;</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.length </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.direction.length</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;ไธญๅฟƒ็‚น&#39;</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.midpoint </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Point3((</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p1.x </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">+</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p2.x) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, (</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p1.y </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">+</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p2.y) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, (</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p1.z </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">+</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p2.z) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div></details>`,8),h=[p];function l(e,k,r,d,E,o){return a(),i("div",null,h)}const c=s(t,[["render",l]]);export{F as __pageData,c as default};
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.midpoint </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Point3((</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p1.x </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">+</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p2.x) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, (</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p1.y </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">+</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p2.y) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, (</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p1.z </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">+</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p2.z) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div></details>`,8),h=[p];function l(e,k,r,d,o,E){return a(),i("div",null,h)}const c=s(t,[["render",l]]);export{F as __pageData,c as default};

View File

@ -1 +1 @@
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const F=JSON.parse('{"title":"mbcp.mp_math.segment","description":"","frontmatter":{"title":"mbcp.mp_math.segment","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/segment.md","filePath":"zh/api/mp_math/segment.md"}'),t={name:"api/mp_math/segment.md"},p=n("",8),h=[p];function l(e,k,r,d,E,o){return a(),i("div",null,h)}const c=s(t,[["render",l]]);export{F as __pageData,c as default};
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const F=JSON.parse('{"title":"mbcp.mp_math.segment","description":"","frontmatter":{"title":"mbcp.mp_math.segment","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/segment.md","filePath":"zh/api/mp_math/segment.md"}'),t={name:"api/mp_math/segment.md"},p=n("",8),h=[p];function l(e,k,r,d,o,E){return a(),i("div",null,h)}const c=s(t,[["render",l]]);export{F as __pageData,c as default};

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const F=JSON.parse('{"title":"mbcp.mp_math.utils","description":"","frontmatter":{"title":"mbcp.mp_math.utils","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/utils.md","filePath":"zh/api/mp_math/utils.md"}'),n={name:"api/mp_math/utils.md"},l=t(`<h1 id="mbcp-mp-math-utils" tabindex="-1">mbcp.mp_math.utils <a class="header-anchor" href="#mbcp-mp-math-utils" aria-label="Permalink to &quot;mbcp.mp_math.utils&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ€ไบ›ๅธธ็”จ็š„ๅทฅๅ…ทๅ‡ฝๆ•ฐ</p><h3 id="func-clamp-x-float-min-float-max-float-float" tabindex="-1"><em><strong>func</strong></em> <code>clamp(x: float, min_: float, max_: float) -&gt; float</code> <a class="header-anchor" href="#func-clamp-x-float-min-float-max-float-float" aria-label="Permalink to &quot;***func*** \`clamp(x: float, min_: float, max_: float) -&gt; float\`&quot;">โ€‹</a></h3><p><strong>่ฏดๆ˜Ž</strong>: ๅŒบ้—ด้™ๅฎšๅ‡ฝๆ•ฐ</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>x (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): ๅ€ผ</li><li>min_ (<code>float</code>): ๆœ€ๅฐๅ€ผ</li><li>max_ (<code>float</code>): ๆœ€ๅคงๅ€ผ</li></ul></blockquote><p><strong>่ฟ”ๅ›ž</strong>: <code>float</code>: ้™ๅฎšๅœจๅŒบ้—ดๅ†…็š„ๅ€ผ</p><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/utils.py#L17" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> clamp</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(x: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, min_: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, max_: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) -&gt; </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const F=JSON.parse('{"title":"mbcp.mp_math.utils","description":"","frontmatter":{"title":"mbcp.mp_math.utils","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/utils.md","filePath":"zh/api/mp_math/utils.md"}'),n={name:"api/mp_math/utils.md"},l=t(`<h1 id="ๆจกๅ—-mbcp-mp-math-utils" tabindex="-1"><strong>ๆจกๅ—</strong> <code>mbcp.mp_math.utils</code> <a class="header-anchor" href="#ๆจกๅ—-mbcp-mp-math-utils" aria-label="Permalink to &quot;**ๆจกๅ—** \`mbcp.mp_math.utils\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ€ไบ›ๅธธ็”จ็š„ๅทฅๅ…ทๅ‡ฝๆ•ฐ</p><h3 id="func-clamp-x-float-min-float-max-float-float" tabindex="-1"><em><strong>func</strong></em> <code>clamp(x: float, min_: float, max_: float) -&gt; float</code> <a class="header-anchor" href="#func-clamp-x-float-min-float-max-float-float" aria-label="Permalink to &quot;***func*** \`clamp(x: float, min_: float, max_: float) -&gt; float\`&quot;">โ€‹</a></h3><p><strong>่ฏดๆ˜Ž</strong>: ๅŒบ้—ด้™ๅฎšๅ‡ฝๆ•ฐ</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>x (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): ๅ€ผ</li><li>min_ (<code>float</code>): ๆœ€ๅฐๅ€ผ</li><li>max_ (<code>float</code>): ๆœ€ๅคงๅ€ผ</li></ul></blockquote><p><strong>่ฟ”ๅ›ž</strong>: <code>float</code>: ้™ๅฎšๅœจๅŒบ้—ดๅ†…็š„ๅ€ผ</p><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/utils.py#L17" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> clamp</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(x: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, min_: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, max_: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) -&gt; </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ๅŒบ้—ด้™ๅฎšๅ‡ฝๆ•ฐ</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const E=JSON.parse('{"title":"mbcp.mp_math.vector","description":"","frontmatter":{"title":"mbcp.mp_math.vector","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/vector.md","filePath":"zh/api/mp_math/vector.md"}'),n={name:"api/mp_math/vector.md"},e=t(`<h1 id="mbcp-mp-math-vector" tabindex="-1">mbcp.mp_math.vector <a class="header-anchor" href="#mbcp-mp-math-vector" aria-label="Permalink to &quot;mbcp.mp_math.vector&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†3็ปดๅ‘้‡็š„็ฑปVector3๏ผŒไปฅๅŠไธ€ไบ›ๅธธ็”จ็š„ๅ‘้‡ใ€‚</p><h3 id="class-vector3" tabindex="-1"><em><strong>class</strong></em> <code>Vector3</code> <a class="header-anchor" href="#class-vector3" aria-label="Permalink to &quot;***class*** \`Vector3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-x-float-y-float-z-float" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, x: float, y: float, z: float)</code> <a class="header-anchor" href="#method-init-self-x-float-y-float-z-float" aria-label="Permalink to &quot;***method*** \`__init__(self, x: float, y: float, z: float)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: 3็ปดๅ‘้‡</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>x (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): x่ฝดๅˆ†้‡</li><li>y (<code>float</code>): y่ฝดๅˆ†้‡</li><li>z (<code>float</code>): z่ฝดๅˆ†้‡</li></ul></blockquote><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/vector.py#L18" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, x: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, y: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, z: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const E=JSON.parse('{"title":"mbcp.mp_math.vector","description":"","frontmatter":{"title":"mbcp.mp_math.vector","lastUpdated":false},"headers":[],"relativePath":"api/mp_math/vector.md","filePath":"zh/api/mp_math/vector.md"}'),n={name:"api/mp_math/vector.md"},e=t(`<h1 id="ๆจกๅ—-mbcp-mp-math-vector" tabindex="-1"><strong>ๆจกๅ—</strong> <code>mbcp.mp_math.vector</code> <a class="header-anchor" href="#ๆจกๅ—-mbcp-mp-math-vector" aria-label="Permalink to &quot;**ๆจกๅ—** \`mbcp.mp_math.vector\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†3็ปดๅ‘้‡็š„็ฑปVector3๏ผŒไปฅๅŠไธ€ไบ›ๅธธ็”จ็š„ๅ‘้‡ใ€‚</p><h3 id="class-vector3" tabindex="-1"><em><strong>class</strong></em> <code>Vector3</code> <a class="header-anchor" href="#class-vector3" aria-label="Permalink to &quot;***class*** \`Vector3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-x-float-y-float-z-float" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, x: float, y: float, z: float)</code> <a class="header-anchor" href="#method-init-self-x-float-y-float-z-float" aria-label="Permalink to &quot;***method*** \`__init__(self, x: float, y: float, z: float)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: 3็ปดๅ‘้‡</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>x (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): x่ฝดๅˆ†้‡</li><li>y (<code>float</code>): y่ฝดๅˆ†้‡</li><li>z (<code>float</code>): z่ฝดๅˆ†้‡</li></ul></blockquote><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/vector.py#L18" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, x: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, y: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, z: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 3็ปดๅ‘้‡</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>

View File

@ -0,0 +1 @@
import{_ as t,c,o as r,j as e,a}from"./chunks/framework.DpC1ZpOZ.js";const x=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/particle/index.md","filePath":"zh/api/particle/index.md"}'),i={name:"api/particle/index.md"},l=e("h1",{id:"ๆจกๅ—-mbcp-particle",tabindex:"-1"},[e("strong",null,"ๆจกๅ—"),a(),e("code",null,"mbcp.particle"),a(),e("a",{class:"header-anchor",href:"#ๆจกๅ—-mbcp-particle","aria-label":'Permalink to "**ๆจกๅ—** `mbcp.particle`"'},"โ€‹")],-1),p=e("p",null,"ๆœฌๆจกๅ—ๅฎšไน‰ไบ†็ฒ’ๅญ็”Ÿๆˆ็›ธๅ…ณ็š„ๅทฅๅ…ท",-1),s=[l,p];function n(o,d,_,m,h,f){return r(),c("div",null,s)}const b=t(i,[["render",n]]);export{x as __pageData,b as default};

View File

@ -0,0 +1 @@
import{_ as t,c,o as r,j as e,a}from"./chunks/framework.DpC1ZpOZ.js";const x=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/particle/index.md","filePath":"zh/api/particle/index.md"}'),i={name:"api/particle/index.md"},l=e("h1",{id:"ๆจกๅ—-mbcp-particle",tabindex:"-1"},[e("strong",null,"ๆจกๅ—"),a(),e("code",null,"mbcp.particle"),a(),e("a",{class:"header-anchor",href:"#ๆจกๅ—-mbcp-particle","aria-label":'Permalink to "**ๆจกๅ—** `mbcp.particle`"'},"โ€‹")],-1),p=e("p",null,"ๆœฌๆจกๅ—ๅฎšไน‰ไบ†็ฒ’ๅญ็”Ÿๆˆ็›ธๅ…ณ็š„ๅทฅๅ…ท",-1),s=[l,p];function n(o,d,_,m,h,f){return r(),c("div",null,s)}const b=t(i,[["render",n]]);export{x as __pageData,b as default};

View File

@ -1 +0,0 @@
import{_ as a,c as t,o as c,j as e,a as r}from"./chunks/framework.DpC1ZpOZ.js";const b=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/particle/index.md","filePath":"zh/api/particle/index.md"}'),i={name:"api/particle/index.md"},p=e("h1",{id:"mbcp-particle",tabindex:"-1"},[r("mbcp.particle "),e("a",{class:"header-anchor",href:"#mbcp-particle","aria-label":'Permalink to "mbcp.particle"'},"โ€‹")],-1),s=e("p",null,"ๆœฌๆจกๅ—ๅฎšไน‰ไบ†็ฒ’ๅญ็”Ÿๆˆ็›ธๅ…ณ็š„ๅทฅๅ…ท",-1),l=[p,s];function o(n,d,_,m,h,f){return c(),t("div",null,l)}const u=a(i,[["render",o]]);export{b as __pageData,u as default};

View File

@ -1 +0,0 @@
import{_ as a,c as t,o as c,j as e,a as r}from"./chunks/framework.DpC1ZpOZ.js";const b=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/particle/index.md","filePath":"zh/api/particle/index.md"}'),i={name:"api/particle/index.md"},p=e("h1",{id:"mbcp-particle",tabindex:"-1"},[r("mbcp.particle "),e("a",{class:"header-anchor",href:"#mbcp-particle","aria-label":'Permalink to "mbcp.particle"'},"โ€‹")],-1),s=e("p",null,"ๆœฌๆจกๅ—ๅฎšไน‰ไบ†็ฒ’ๅญ็”Ÿๆˆ็›ธๅ…ณ็š„ๅทฅๅ…ท",-1),l=[p,s];function o(n,d,_,m,h,f){return c(),t("div",null,l)}const u=a(i,[["render",o]]);export{b as __pageData,u as default};

View File

@ -1 +0,0 @@
import{_ as t,c as s,o as a,j as e,a as r}from"./chunks/framework.DpC1ZpOZ.js";const b=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/presets/index.md","filePath":"zh/api/presets/index.md"}'),p={name:"api/presets/index.md"},c=e("h1",{id:"mbcp-presets",tabindex:"-1"},[r("mbcp.presets "),e("a",{class:"header-anchor",href:"#mbcp-presets","aria-label":'Permalink to "mbcp.presets"'},"โ€‹")],-1),o=e("p",null,"ๆœฌๆจกๅ—ๅกžไบ†ไธ€ไบ›้ข„่ฎพ",-1),n=[c,o];function d(i,l,_,m,h,f){return a(),s("div",null,n)}const u=t(p,[["render",d]]);export{b as __pageData,u as default};

View File

@ -1 +0,0 @@
import{_ as t,c as s,o as a,j as e,a as r}from"./chunks/framework.DpC1ZpOZ.js";const b=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/presets/index.md","filePath":"zh/api/presets/index.md"}'),p={name:"api/presets/index.md"},c=e("h1",{id:"mbcp-presets",tabindex:"-1"},[r("mbcp.presets "),e("a",{class:"header-anchor",href:"#mbcp-presets","aria-label":'Permalink to "mbcp.presets"'},"โ€‹")],-1),o=e("p",null,"ๆœฌๆจกๅ—ๅกžไบ†ไธ€ไบ›้ข„่ฎพ",-1),n=[c,o];function d(i,l,_,m,h,f){return a(),s("div",null,n)}const u=t(p,[["render",d]]);export{b as __pageData,u as default};

View File

@ -0,0 +1 @@
import{_ as s,c as a,o as r,j as e,a as t}from"./chunks/framework.DpC1ZpOZ.js";const x=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/presets/index.md","filePath":"zh/api/presets/index.md"}'),p={name:"api/presets/index.md"},c=e("h1",{id:"ๆจกๅ—-mbcp-presets",tabindex:"-1"},[e("strong",null,"ๆจกๅ—"),t(),e("code",null,"mbcp.presets"),t(),e("a",{class:"header-anchor",href:"#ๆจกๅ—-mbcp-presets","aria-label":'Permalink to "**ๆจกๅ—** `mbcp.presets`"'},"โ€‹")],-1),n=e("p",null,"ๆœฌๆจกๅ—ๅกžไบ†ไธ€ไบ›้ข„่ฎพ",-1),o=[c,n];function d(i,l,_,m,h,f){return r(),a("div",null,o)}const b=s(p,[["render",d]]);export{x as __pageData,b as default};

View File

@ -0,0 +1 @@
import{_ as s,c as a,o as r,j as e,a as t}from"./chunks/framework.DpC1ZpOZ.js";const x=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/presets/index.md","filePath":"zh/api/presets/index.md"}'),p={name:"api/presets/index.md"},c=e("h1",{id:"ๆจกๅ—-mbcp-presets",tabindex:"-1"},[e("strong",null,"ๆจกๅ—"),t(),e("code",null,"mbcp.presets"),t(),e("a",{class:"header-anchor",href:"#ๆจกๅ—-mbcp-presets","aria-label":'Permalink to "**ๆจกๅ—** `mbcp.presets`"'},"โ€‹")],-1),n=e("p",null,"ๆœฌๆจกๅ—ๅกžไบ†ไธ€ไบ›้ข„่ฎพ",-1),o=[c,n];function d(i,l,_,m,h,f){return r(),a("div",null,o)}const b=s(p,[["render",d]]);export{x as __pageData,b as default};

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const y=JSON.parse('{"title":"mbcp.presets.model","description":"","frontmatter":{"title":"mbcp.presets.model","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/presets/model/index.md","filePath":"zh/api/presets/model/index.md"}'),n={name:"api/presets/model/index.md"},h=t(`<h1 id="mbcp-presets-model" tabindex="-1">mbcp.presets.model <a class="header-anchor" href="#mbcp-presets-model" aria-label="Permalink to &quot;mbcp.presets.model&quot;">โ€‹</a></h1><p>ๅ‡ ไฝ•ๆจกๅž‹็‚น้›†</p><h3 id="class-geometricmodels" tabindex="-1"><em><strong>class</strong></em> <code>GeometricModels</code> <a class="header-anchor" href="#class-geometricmodels" aria-label="Permalink to &quot;***class*** \`GeometricModels\`&quot;">โ€‹</a></h3><p><a href="https://docs.python.org/3/library/functions.html#staticmethod" target="_blank" rel="noreferrer"><code>@staticmethod</code></a></p><h4 id="method-sphere-radius-float-density-float" tabindex="-1"><em><strong>method</strong></em> <code>sphere(radius: float, density: float)</code> <a class="header-anchor" href="#method-sphere-radius-float-density-float" aria-label="Permalink to &quot;***method*** \`sphere(radius: float, density: float)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: ็”Ÿๆˆ็ƒไฝ“ไธŠ็š„็‚น้›†ใ€‚</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>radius:</li><li>density:</li></ul></blockquote><p><strong>่ฟ”ๅ›ž</strong>: List[Point3]: ็ƒไฝ“ไธŠ็š„็‚น้›†ใ€‚</p><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/presets/model/__init__.py#L12" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">@</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">staticmethod</span></span>
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const y=JSON.parse('{"title":"mbcp.presets.model","description":"","frontmatter":{"title":"mbcp.presets.model","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/presets/model/index.md","filePath":"zh/api/presets/model/index.md"}'),n={name:"api/presets/model/index.md"},h=t(`<h1 id="ๆจกๅ—-mbcp-presets-model" tabindex="-1"><strong>ๆจกๅ—</strong> <code>mbcp.presets.model</code> <a class="header-anchor" href="#ๆจกๅ—-mbcp-presets-model" aria-label="Permalink to &quot;**ๆจกๅ—** \`mbcp.presets.model\`&quot;">โ€‹</a></h1><p>ๅ‡ ไฝ•ๆจกๅž‹็‚น้›†</p><h3 id="class-geometricmodels" tabindex="-1"><em><strong>class</strong></em> <code>GeometricModels</code> <a class="header-anchor" href="#class-geometricmodels" aria-label="Permalink to &quot;***class*** \`GeometricModels\`&quot;">โ€‹</a></h3><p><a href="https://docs.python.org/3/library/functions.html#staticmethod" target="_blank" rel="noreferrer"><code>@staticmethod</code></a></p><h4 id="method-sphere-radius-float-density-float" tabindex="-1"><em><strong>method</strong></em> <code>sphere(radius: float, density: float)</code> <a class="header-anchor" href="#method-sphere-radius-float-density-float" aria-label="Permalink to &quot;***method*** \`sphere(radius: float, density: float)\`&quot;">โ€‹</a></h4><p><strong>่ฏดๆ˜Ž</strong>: ็”Ÿๆˆ็ƒไฝ“ไธŠ็š„็‚น้›†ใ€‚</p><p><strong>ๅ‚ๆ•ฐ</strong>:</p><blockquote><ul><li>radius:</li><li>density:</li></ul></blockquote><p><strong>่ฟ”ๅ›ž</strong>: List[Point3]: ็ƒไฝ“ไธŠ็š„็‚น้›†ใ€‚</p><details><summary><b>ๆบไปฃ็ </b> ๆˆ– <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/presets/model/__init__.py#L12" target="_blank">ๅœจGitHubไธŠๆŸฅ็œ‹</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">@</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">staticmethod</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> sphere</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(radius: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, density: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ็”Ÿๆˆ็ƒไฝ“ไธŠ็š„็‚น้›†ใ€‚</span></span>
@ -15,4 +15,4 @@ import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const y
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> x_array </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sin(phi_list) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.cos(theta_list)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> y_array </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sin(phi_list) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.sin(theta_list)</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> z_array </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> radius </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">*</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> np.cos(phi_list)</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [Point3(x_array[i], y_array[i], z_array[i]) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">for</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> i </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">in</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> range</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(num)]</span></span></code></pre></div></details>`,10),l=[h];function p(k,e,r,d,E,o){return a(),i("div",null,l)}const c=s(n,[["render",p]]);export{y as __pageData,c as default};
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [Point3(x_array[i], y_array[i], z_array[i]) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">for</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> i </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">in</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> range</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(num)]</span></span></code></pre></div></details>`,10),l=[h];function p(e,k,r,d,E,o){return a(),i("div",null,l)}const c=s(n,[["render",p]]);export{y as __pageData,c as default};

View File

@ -1 +1 @@
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const y=JSON.parse('{"title":"mbcp.presets.model","description":"","frontmatter":{"title":"mbcp.presets.model","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/presets/model/index.md","filePath":"zh/api/presets/model/index.md"}'),n={name:"api/presets/model/index.md"},h=t("",10),l=[h];function p(k,e,r,d,E,o){return a(),i("div",null,l)}const c=s(n,[["render",p]]);export{y as __pageData,c as default};
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const y=JSON.parse('{"title":"mbcp.presets.model","description":"","frontmatter":{"title":"mbcp.presets.model","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"api/presets/model/index.md","filePath":"zh/api/presets/model/index.md"}'),n={name:"api/presets/model/index.md"},h=t("",10),l=[h];function p(e,k,r,d,E,o){return a(),i("div",null,l)}const c=s(n,[["render",p]]);export{y as __pageData,c as default};

View File

@ -1 +1 @@
import{t as p}from"./chunks/theme.ClwrcgHO.js";import{U as o,a5 as u,a6 as c,a7 as l,a8 as f,a9 as d,aa as m,ab as h,ac as g,ad as A,ae as y,d as P,u as v,y as C,x as b,af as w,ag as E,ah as R,ai as S}from"./chunks/framework.DpC1ZpOZ.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(p),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=v();return C(()=>{b(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&w(),E(),R(),s.setup&&s.setup(),()=>S(s.Layout)}});async function x(){globalThis.__VITEPRESS__=!0;const e=_(),a=D();a.provide(c,e);const t=l(e.route);return a.provide(f,t),a.component("Content",d),a.component("ClientOnly",m),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:h}),{app:a,router:e,data:t}}function D(){return g(T)}function _(){let e=o,a;return A(t=>{let n=y(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=import(n)),o&&(e=!1),r},s.NotFound)}o&&x().then(({app:e,router:a,data:t})=>{a.go().then(()=>{u(a.route,t.site),e.mount("#app")})});export{x as createApp};
import{t as p}from"./chunks/theme.DHjGH3Nl.js";import{U as o,a5 as u,a6 as c,a7 as l,a8 as f,a9 as d,aa as m,ab as h,ac as g,ad as A,ae as y,d as P,u as v,y as C,x as b,af as w,ag as E,ah as R,ai as S}from"./chunks/framework.DpC1ZpOZ.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(p),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=v();return C(()=>{b(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&w(),E(),R(),s.setup&&s.setup(),()=>S(s.Layout)}});async function x(){globalThis.__VITEPRESS__=!0;const e=_(),a=D();a.provide(c,e);const t=l(e.route);return a.provide(f,t),a.component("Content",d),a.component("ClientOnly",m),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:h}),{app:a,router:e,data:t}}function D(){return g(T)}function _(){let e=o,a;return A(t=>{let n=y(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=import(n)),o&&(e=!1),r},s.NotFound)}o&&x().then(({app:e,router:a,data:t})=>{a.go().then(()=>{u(a.route,t.site),e.mount("#app")})});export{x as createApp};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{_ as e,c as a,o as t,a4 as c}from"./chunks/framework.DpC1ZpOZ.js";const f=JSON.parse('{"title":"mbcp","description":"","frontmatter":{"title":"mbcp","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/index.md","filePath":"en/api/index.md"}'),p={name:"en/api/index.md"},o=c('<h1 id="mbcp" tabindex="-1">mbcp <a class="header-anchor" href="#mbcp" aria-label="Permalink to &quot;mbcp&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๆ˜ฏไธปๆจกๅ—๏ผŒๆไพ›ไบ†ไธ€ไบ›ๅทฅๅ…ท ๅฏๅฏผๅ…ฅ</p><p><a href="./mp_math/"><code>mbcp.mp_math</code></a>๏ผšๆ•ฐๅญฆๅทฅๅ…ท</p><p><a href="./particle/"><code>mbcp.particle</code></a>๏ผš็ฒ’ๅญ็”Ÿๆˆๅทฅๅ…ท</p><p><a href="./presets/"><code>mbcp.presets</code></a>๏ผš้ข„่ฎพ</p>',5),r=[o];function s(d,_,n,i,m,l){return t(),a("div",null,r)}const b=e(p,[["render",s]]);export{f as __pageData,b as default};
import{_ as e,c as a,o as t,a4 as c}from"./chunks/framework.DpC1ZpOZ.js";const f=JSON.parse('{"title":"mbcp","description":"","frontmatter":{"title":"mbcp","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/index.md","filePath":"en/api/index.md"}'),o={name:"en/api/index.md"},p=c('<h1 id="module-mbcp" tabindex="-1"><strong>Module</strong> <code>mbcp</code> <a class="header-anchor" href="#module-mbcp" aria-label="Permalink to &quot;**Module** `mbcp`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๆ˜ฏไธปๆจกๅ—๏ผŒๆไพ›ไบ†ไธ€ไบ›ๅทฅๅ…ท ๅฏๅฏผๅ…ฅ</p><p><a href="./mp_math/"><code>mbcp.mp_math</code></a>๏ผšๆ•ฐๅญฆๅทฅๅ…ท</p><p><a href="./particle/"><code>mbcp.particle</code></a>๏ผš็ฒ’ๅญ็”Ÿๆˆๅทฅๅ…ท</p><p><a href="./presets/"><code>mbcp.presets</code></a>๏ผš้ข„่ฎพ</p>',5),d=[p];function r(s,n,_,i,m,l){return t(),a("div",null,d)}const u=e(o,[["render",r]]);export{f as __pageData,u as default};

View File

@ -1 +1 @@
import{_ as e,c as a,o as t,a4 as c}from"./chunks/framework.DpC1ZpOZ.js";const f=JSON.parse('{"title":"mbcp","description":"","frontmatter":{"title":"mbcp","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/index.md","filePath":"en/api/index.md"}'),p={name:"en/api/index.md"},o=c("",5),r=[o];function s(d,_,n,i,m,l){return t(),a("div",null,r)}const b=e(p,[["render",s]]);export{f as __pageData,b as default};
import{_ as e,c as a,o as t,a4 as c}from"./chunks/framework.DpC1ZpOZ.js";const f=JSON.parse('{"title":"mbcp","description":"","frontmatter":{"title":"mbcp","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/index.md","filePath":"en/api/index.md"}'),o={name:"en/api/index.md"},p=c("",5),d=[p];function r(s,n,_,i,m,l){return t(),a("div",null,d)}const u=e(o,[["render",r]]);export{f as __pageData,u as default};

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const c=JSON.parse('{"title":"mbcp.mp_math.angle","description":"","frontmatter":{"title":"mbcp.mp_math.angle","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/angle.md","filePath":"en/api/mp_math/angle.md"}'),t={name:"en/api/mp_math/angle.md"},e=n(`<h1 id="mbcp-mp-math-angle" tabindex="-1">mbcp.mp_math.angle <a class="header-anchor" href="#mbcp-mp-math-angle" aria-label="Permalink to &quot;mbcp.mp_math.angle&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†่ง’ๅบฆ็›ธๅ…ณ็š„็ฑป</p><h3 id="class-angle" tabindex="-1"><em><strong>class</strong></em> <code>Angle</code> <a class="header-anchor" href="#class-angle" aria-label="Permalink to &quot;***class*** \`Angle\`&quot;">โ€‹</a></h3><h3 id="class-anyangle-angle" tabindex="-1"><em><strong>class</strong></em> <code>AnyAngle(Angle)</code> <a class="header-anchor" href="#class-anyangle-angle" aria-label="Permalink to &quot;***class*** \`AnyAngle(Angle)\`&quot;">โ€‹</a></h3><h4 id="method-init-self-value-float-is-radian-bool-false" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, value: float, is_radian: bool = False)</code> <a class="header-anchor" href="#method-init-self-value-float-is-radian-bool-false" aria-label="Permalink to &quot;***method*** \`__init__(self, value: float, is_radian: bool = False)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: ไปปๆ„่ง’ๅบฆใ€‚</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>value: ่ง’ๅบฆๆˆ–ๅผงๅบฆๅ€ผ</li><li>is_radian: ๆ˜ฏๅฆไธบๅผงๅบฆ๏ผŒ้ป˜่ฎคไธบๅฆ</li></ul></blockquote><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/angle.py#L17" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, value: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, is_radian: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">bool</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">False</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const c=JSON.parse('{"title":"mbcp.mp_math.angle","description":"","frontmatter":{"title":"mbcp.mp_math.angle","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/angle.md","filePath":"en/api/mp_math/angle.md"}'),t={name:"en/api/mp_math/angle.md"},e=n(`<h1 id="module-mbcp-mp-math-angle" tabindex="-1"><strong>Module</strong> <code>mbcp.mp_math.angle</code> <a class="header-anchor" href="#module-mbcp-mp-math-angle" aria-label="Permalink to &quot;**Module** \`mbcp.mp_math.angle\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†่ง’ๅบฆ็›ธๅ…ณ็š„็ฑป</p><h3 id="class-angle" tabindex="-1"><em><strong>class</strong></em> <code>Angle</code> <a class="header-anchor" href="#class-angle" aria-label="Permalink to &quot;***class*** \`Angle\`&quot;">โ€‹</a></h3><h3 id="class-anyangle-angle" tabindex="-1"><em><strong>class</strong></em> <code>AnyAngle(Angle)</code> <a class="header-anchor" href="#class-anyangle-angle" aria-label="Permalink to &quot;***class*** \`AnyAngle(Angle)\`&quot;">โ€‹</a></h3><h4 id="method-init-self-value-float-is-radian-bool-false" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, value: float, is_radian: bool = False)</code> <a class="header-anchor" href="#method-init-self-value-float-is-radian-bool-false" aria-label="Permalink to &quot;***method*** \`__init__(self, value: float, is_radian: bool = False)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: ไปปๆ„่ง’ๅบฆใ€‚</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>value: ่ง’ๅบฆๆˆ–ๅผงๅบฆๅ€ผ</li><li>is_radian: ๆ˜ฏๅฆไธบๅผงๅบฆ๏ผŒ้ป˜่ฎคไธบๅฆ</li></ul></blockquote><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/angle.py#L17" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, value: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, is_radian: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">bool</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">False</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ไปปๆ„่ง’ๅบฆใ€‚</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>

View File

@ -1 +1 @@
import{_ as a,c as t,o as e,a4 as o}from"./chunks/framework.DpC1ZpOZ.js";const _=JSON.parse('{"title":"mbcp.mp_math.const","description":"","frontmatter":{"title":"mbcp.mp_math.const","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/const.md","filePath":"en/api/mp_math/const.md"}'),r={name:"en/api/mp_math/const.md"},i=o('<h1 id="mbcp-mp-math-const" tabindex="-1">mbcp.mp_math.const <a class="header-anchor" href="#mbcp-mp-math-const" aria-label="Permalink to &quot;mbcp.mp_math.const&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ€ไบ›ๅธธ็”จ็š„ๅธธ้‡</p><h3 id="var-pi" tabindex="-1">var <code>PI</code> <a class="header-anchor" href="#var-pi" aria-label="Permalink to &quot;var `PI`&quot;">โ€‹</a></h3><ul><li><p><strong>Description</strong>: ๅธธ้‡ ฯ€</p></li><li><p><strong>Default</strong>: <code>math.pi</code></p></li></ul><h3 id="var-e" tabindex="-1">var <code>E</code> <a class="header-anchor" href="#var-e" aria-label="Permalink to &quot;var `E`&quot;">โ€‹</a></h3><ul><li><p><strong>Description</strong>: ่‡ช็„ถๅฏนๆ•ฐ็š„ๅบ• exp(1)</p></li><li><p><strong>Default</strong>: <code>math.e</code></p></li></ul><h3 id="var-golden-ratio" tabindex="-1">var <code>GOLDEN_RATIO</code> <a class="header-anchor" href="#var-golden-ratio" aria-label="Permalink to &quot;var `GOLDEN_RATIO`&quot;">โ€‹</a></h3><ul><li><p><strong>Description</strong>: ้ป„้‡‘ๅˆ†ๅ‰ฒๆฏ”</p></li><li><p><strong>Default</strong>: <code>(1 + math.sqrt(5)) / 2</code></p></li></ul><h3 id="var-gamma" tabindex="-1">var <code>GAMMA</code> <a class="header-anchor" href="#var-gamma" aria-label="Permalink to &quot;var `GAMMA`&quot;">โ€‹</a></h3><ul><li><p><strong>Description</strong>: ๆฌงๆ‹‰ๅธธๆ•ฐ</p></li><li><p><strong>Default</strong>: <code>0.5772156649015329</code></p></li></ul><h3 id="var-epsilon" tabindex="-1">var <code>EPSILON</code> <a class="header-anchor" href="#var-epsilon" aria-label="Permalink to &quot;var `EPSILON`&quot;">โ€‹</a></h3><ul><li><p><strong>Description</strong>: ็ฒพๅบฆ่ฏฏๅทฎ</p></li><li><p><strong>Default</strong>: <code>0.0001</code></p></li></ul><h3 id="var-approx" tabindex="-1">var <code>APPROX</code> <a class="header-anchor" href="#var-approx" aria-label="Permalink to &quot;var `APPROX`&quot;">โ€‹</a></h3><ul><li><p><strong>Description</strong>: ็บฆ็ญ‰ไบŽๅˆคๅฎš่ฏฏๅทฎ</p></li><li><p><strong>Default</strong>: <code>0.001</code></p></li></ul>',14),l=[i];function n(s,c,p,d,h,m){return e(),t("div",null,l)}const g=a(r,[["render",n]]);export{_ as __pageData,g as default};
import{_ as a,c as o,o as e,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const _=JSON.parse('{"title":"mbcp.mp_math.const","description":"","frontmatter":{"title":"mbcp.mp_math.const","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/const.md","filePath":"en/api/mp_math/const.md"}'),r={name:"en/api/mp_math/const.md"},l=t('<h1 id="module-mbcp-mp-math-const" tabindex="-1"><strong>Module</strong> <code>mbcp.mp_math.const</code> <a class="header-anchor" href="#module-mbcp-mp-math-const" aria-label="Permalink to &quot;**Module** `mbcp.mp_math.const`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ€ไบ›ๅธธ็”จ็š„ๅธธ้‡</p><h3 id="var-pi" tabindex="-1">var <code>PI</code> <a class="header-anchor" href="#var-pi" aria-label="Permalink to &quot;var `PI`&quot;">โ€‹</a></h3><ul><li><p><strong>Description</strong>: ๅธธ้‡ ฯ€</p></li><li><p><strong>Default</strong>: <code>math.pi</code></p></li></ul><h3 id="var-e" tabindex="-1">var <code>E</code> <a class="header-anchor" href="#var-e" aria-label="Permalink to &quot;var `E`&quot;">โ€‹</a></h3><ul><li><p><strong>Description</strong>: ่‡ช็„ถๅฏนๆ•ฐ็š„ๅบ• exp(1)</p></li><li><p><strong>Default</strong>: <code>math.e</code></p></li></ul><h3 id="var-golden-ratio" tabindex="-1">var <code>GOLDEN_RATIO</code> <a class="header-anchor" href="#var-golden-ratio" aria-label="Permalink to &quot;var `GOLDEN_RATIO`&quot;">โ€‹</a></h3><ul><li><p><strong>Description</strong>: ้ป„้‡‘ๅˆ†ๅ‰ฒๆฏ”</p></li><li><p><strong>Default</strong>: <code>(1 + math.sqrt(5)) / 2</code></p></li></ul><h3 id="var-gamma" tabindex="-1">var <code>GAMMA</code> <a class="header-anchor" href="#var-gamma" aria-label="Permalink to &quot;var `GAMMA`&quot;">โ€‹</a></h3><ul><li><p><strong>Description</strong>: ๆฌงๆ‹‰ๅธธๆ•ฐ</p></li><li><p><strong>Default</strong>: <code>0.5772156649015329</code></p></li></ul><h3 id="var-epsilon" tabindex="-1">var <code>EPSILON</code> <a class="header-anchor" href="#var-epsilon" aria-label="Permalink to &quot;var `EPSILON`&quot;">โ€‹</a></h3><ul><li><p><strong>Description</strong>: ็ฒพๅบฆ่ฏฏๅทฎ</p></li><li><p><strong>Default</strong>: <code>0.0001</code></p></li></ul><h3 id="var-approx" tabindex="-1">var <code>APPROX</code> <a class="header-anchor" href="#var-approx" aria-label="Permalink to &quot;var `APPROX`&quot;">โ€‹</a></h3><ul><li><p><strong>Description</strong>: ็บฆ็ญ‰ไบŽๅˆคๅฎš่ฏฏๅทฎ</p></li><li><p><strong>Default</strong>: <code>0.001</code></p></li></ul>',14),i=[l];function n(s,c,p,d,h,m){return e(),o("div",null,i)}const g=a(r,[["render",n]]);export{_ as __pageData,g as default};

View File

@ -1 +1 @@
import{_ as a,c as t,o as e,a4 as o}from"./chunks/framework.DpC1ZpOZ.js";const _=JSON.parse('{"title":"mbcp.mp_math.const","description":"","frontmatter":{"title":"mbcp.mp_math.const","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/const.md","filePath":"en/api/mp_math/const.md"}'),r={name:"en/api/mp_math/const.md"},i=o("",14),l=[i];function n(s,c,p,d,h,m){return e(),t("div",null,l)}const g=a(r,[["render",n]]);export{_ as __pageData,g as default};
import{_ as a,c as o,o as e,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const _=JSON.parse('{"title":"mbcp.mp_math.const","description":"","frontmatter":{"title":"mbcp.mp_math.const","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/const.md","filePath":"en/api/mp_math/const.md"}'),r={name:"en/api/mp_math/const.md"},l=t("",14),i=[l];function n(s,c,p,d,h,m){return e(),o("div",null,i)}const g=a(r,[["render",n]]);export{_ as __pageData,g as default};

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const u=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/equation.md","filePath":"en/api/mp_math/equation.md"}'),t={name:"en/api/mp_math/equation.md"},l=n(`<h1 id="mbcp-mp-math-equation" tabindex="-1">mbcp.mp_math.equation <a class="header-anchor" href="#mbcp-mp-math-equation" aria-label="Permalink to &quot;mbcp.mp_math.equation&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ๆ–น็จ‹็›ธๅ…ณ็š„็ฑปๅ’Œๅ‡ฝๆ•ฐไปฅๅŠไธ€ไบ›ๅธธ็”จ็š„ๆ•ฐๅญฆๅ‡ฝๆ•ฐ</p><h3 id="class-curveequation" tabindex="-1"><em><strong>class</strong></em> <code>CurveEquation</code> <a class="header-anchor" href="#class-curveequation" aria-label="Permalink to &quot;***class*** \`CurveEquation\`&quot;">โ€‹</a></h3><h4 id="method-init-self-x-func-onevarfunc-y-func-onevarfunc-z-func-onevarfunc" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc)</code> <a class="header-anchor" href="#method-init-self-x-func-onevarfunc-y-func-onevarfunc-z-func-onevarfunc" aria-label="Permalink to &quot;***method*** \`__init__(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: ๆ›ฒ็บฟๆ–น็จ‹ใ€‚</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>x_func (<a href="./mp_math_typing.html#var-onevarfunc"><code>OneVarFunc</code></a>): xๅ‡ฝๆ•ฐ</li><li>y_func (<a href="./mp_math_typing.html#var-onevarfunc"><code>OneVarFunc</code></a>): yๅ‡ฝๆ•ฐ</li><li>z_func (<a href="./mp_math_typing.html#var-onevarfunc"><code>OneVarFunc</code></a>): zๅ‡ฝๆ•ฐ</li></ul></blockquote><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/equation.py#L12" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc):</span></span>
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const u=JSON.parse('{"title":"mbcp.mp_math.equation","description":"","frontmatter":{"title":"mbcp.mp_math.equation","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/equation.md","filePath":"en/api/mp_math/equation.md"}'),t={name:"en/api/mp_math/equation.md"},l=n(`<h1 id="module-mbcp-mp-math-equation" tabindex="-1"><strong>Module</strong> <code>mbcp.mp_math.equation</code> <a class="header-anchor" href="#module-mbcp-mp-math-equation" aria-label="Permalink to &quot;**Module** \`mbcp.mp_math.equation\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ๆ–น็จ‹็›ธๅ…ณ็š„็ฑปๅ’Œๅ‡ฝๆ•ฐไปฅๅŠไธ€ไบ›ๅธธ็”จ็š„ๆ•ฐๅญฆๅ‡ฝๆ•ฐ</p><h3 id="class-curveequation" tabindex="-1"><em><strong>class</strong></em> <code>CurveEquation</code> <a class="header-anchor" href="#class-curveequation" aria-label="Permalink to &quot;***class*** \`CurveEquation\`&quot;">โ€‹</a></h3><h4 id="method-init-self-x-func-onevarfunc-y-func-onevarfunc-z-func-onevarfunc" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc)</code> <a class="header-anchor" href="#method-init-self-x-func-onevarfunc-y-func-onevarfunc-z-func-onevarfunc" aria-label="Permalink to &quot;***method*** \`__init__(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: ๆ›ฒ็บฟๆ–น็จ‹ใ€‚</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>x_func (<a href="./mp_math_typing.html#var-onevarfunc"><code>OneVarFunc</code></a>): xๅ‡ฝๆ•ฐ</li><li>y_func (<a href="./mp_math_typing.html#var-onevarfunc"><code>OneVarFunc</code></a>): yๅ‡ฝๆ•ฐ</li><li>z_func (<a href="./mp_math_typing.html#var-onevarfunc"><code>OneVarFunc</code></a>): zๅ‡ฝๆ•ฐ</li></ul></blockquote><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/equation.py#L12" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ๆ›ฒ็บฟๆ–น็จ‹ใ€‚</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>

View File

@ -1 +1 @@
import{_ as e,c as a,o as t,a4 as c}from"./chunks/framework.DpC1ZpOZ.js";const f=JSON.parse('{"title":"mbcp.mp_math","description":"","frontmatter":{"title":"mbcp.mp_math","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/mp_math/index.md","filePath":"en/api/mp_math/index.md"}'),l={name:"en/api/mp_math/index.md"},o=c('<h1 id="mbcp-mp-math" tabindex="-1">mbcp.mp_math <a class="header-anchor" href="#mbcp-mp-math" aria-label="Permalink to &quot;mbcp.mp_math&quot;">โ€‹</a></h1><p>ๆœฌๅŒ…ๅฎšไน‰ไบ†ไธ€ไบ›ๅธธ็”จ็š„ๅฏผๅ…ฅ๏ผŒๅฏ็›ดๆŽฅไปŽ<code>mbcp.mp_math</code>ๅฏผๅ…ฅไฝฟ็”จ ๅฏผๅ…ฅ็š„็ฑปๆœ‰๏ผš</p><ul><li><a href="./angle.html#class-anyangle"><code>AnyAngle</code></a>๏ผšไปปๆ„่ง’ๅบฆ</li><li><a href="./equation.html#class-curveequation"><code>CurveEquation</code></a>๏ผšๆ›ฒ็บฟๆ–น็จ‹</li><li><a href="./line.html#class-line3"><code>Line3</code></a>๏ผšไธ‰็ปด็›ด็บฟ</li><li><a href="./plane.html#class-plane3"><code>Plane3</code></a>๏ผšไธ‰็ปดๅนณ้ข</li><li><a href="./point.html#class-point3"><code>Point3</code></a>๏ผšไธ‰็ปด็‚น</li><li><a href="./segment.html#class-segment3"><code>Segment3</code></a>๏ผšไธ‰็ปด็บฟๆฎต</li><li><a href="./vector.html#class-vector3"><code>Vector3</code></a>๏ผšไธ‰็ปดๅ‘้‡</li></ul>',3),i=[o];function n(m,s,d,p,r,h){return t(),a("div",null,i)}const u=e(l,[["render",n]]);export{f as __pageData,u as default};
import{_ as e,c as a,o as t,a4 as l}from"./chunks/framework.DpC1ZpOZ.js";const u=JSON.parse('{"title":"mbcp.mp_math","description":"","frontmatter":{"title":"mbcp.mp_math","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/mp_math/index.md","filePath":"en/api/mp_math/index.md"}'),o={name:"en/api/mp_math/index.md"},c=l('<h1 id="module-mbcp-mp-math" tabindex="-1"><strong>Module</strong> <code>mbcp.mp_math</code> <a class="header-anchor" href="#module-mbcp-mp-math" aria-label="Permalink to &quot;**Module** `mbcp.mp_math`&quot;">โ€‹</a></h1><p>ๆœฌๅŒ…ๅฎšไน‰ไบ†ไธ€ไบ›ๅธธ็”จ็š„ๅฏผๅ…ฅ๏ผŒๅฏ็›ดๆŽฅไปŽ<code>mbcp.mp_math</code>ๅฏผๅ…ฅไฝฟ็”จ ๅฏผๅ…ฅ็š„็ฑปๆœ‰๏ผš</p><ul><li><a href="./angle.html#class-anyangle"><code>AnyAngle</code></a>๏ผšไปปๆ„่ง’ๅบฆ</li><li><a href="./equation.html#class-curveequation"><code>CurveEquation</code></a>๏ผšๆ›ฒ็บฟๆ–น็จ‹</li><li><a href="./line.html#class-line3"><code>Line3</code></a>๏ผšไธ‰็ปด็›ด็บฟ</li><li><a href="./plane.html#class-plane3"><code>Plane3</code></a>๏ผšไธ‰็ปดๅนณ้ข</li><li><a href="./point.html#class-point3"><code>Point3</code></a>๏ผšไธ‰็ปด็‚น</li><li><a href="./segment.html#class-segment3"><code>Segment3</code></a>๏ผšไธ‰็ปด็บฟๆฎต</li><li><a href="./vector.html#class-vector3"><code>Vector3</code></a>๏ผšไธ‰็ปดๅ‘้‡</li></ul>',3),n=[c];function m(i,d,s,p,r,h){return t(),a("div",null,n)}const f=e(o,[["render",m]]);export{u as __pageData,f as default};

View File

@ -0,0 +1 @@
import{_ as e,c as a,o as t,a4 as l}from"./chunks/framework.DpC1ZpOZ.js";const u=JSON.parse('{"title":"mbcp.mp_math","description":"","frontmatter":{"title":"mbcp.mp_math","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/mp_math/index.md","filePath":"en/api/mp_math/index.md"}'),o={name:"en/api/mp_math/index.md"},c=l("",3),n=[c];function m(i,d,s,p,r,h){return t(),a("div",null,n)}const f=e(o,[["render",m]]);export{u as __pageData,f as default};

View File

@ -1 +0,0 @@
import{_ as e,c as a,o as t,a4 as c}from"./chunks/framework.DpC1ZpOZ.js";const f=JSON.parse('{"title":"mbcp.mp_math","description":"","frontmatter":{"title":"mbcp.mp_math","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/mp_math/index.md","filePath":"en/api/mp_math/index.md"}'),l={name:"en/api/mp_math/index.md"},o=c("",3),i=[o];function n(m,s,d,p,r,h){return t(),a("div",null,i)}const u=e(l,[["render",n]]);export{f as __pageData,u as default};

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const F=JSON.parse('{"title":"mbcp.mp_math.line","description":"","frontmatter":{"title":"mbcp.mp_math.line","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/line.md","filePath":"en/api/mp_math/line.md"}'),t={name:"en/api/mp_math/line.md"},l=n(`<h1 id="mbcp-mp-math-line" tabindex="-1">mbcp.mp_math.line <a class="header-anchor" href="#mbcp-mp-math-line" aria-label="Permalink to &quot;mbcp.mp_math.line&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็š„็›ด็บฟ็ฑป</p><h3 id="class-line3" tabindex="-1"><em><strong>class</strong></em> <code>Line3</code> <a class="header-anchor" href="#class-line3" aria-label="Permalink to &quot;***class*** \`Line3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-point-point3-direction-vector3" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, point: Point3, direction: Vector3)</code> <a class="header-anchor" href="#method-init-self-point-point3-direction-vector3" aria-label="Permalink to &quot;***method*** \`__init__(self, point: Point3, direction: Vector3)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: ไธ‰็ปด็ฉบ้—ดไธญ็š„็›ด็บฟใ€‚็”ฑไธ€ไธช็‚นๅ’Œไธ€ไธชๆ–นๅ‘ๅ‘้‡็กฎๅฎšใ€‚</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>point (<a href="./point.html#class-point3"><code>Point3</code></a>): ็›ด็บฟไธŠ็š„ไธ€็‚น</li><li>direction (<a href="./vector.html#class-vector3"><code>Vector3</code></a>): ๆ–นๅ‘ๅ‘้‡</li></ul></blockquote><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/line.py#L19" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, point: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Point3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, direction: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Vector3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const F=JSON.parse('{"title":"mbcp.mp_math.line","description":"","frontmatter":{"title":"mbcp.mp_math.line","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/line.md","filePath":"en/api/mp_math/line.md"}'),t={name:"en/api/mp_math/line.md"},l=n(`<h1 id="module-mbcp-mp-math-line" tabindex="-1"><strong>Module</strong> <code>mbcp.mp_math.line</code> <a class="header-anchor" href="#module-mbcp-mp-math-line" aria-label="Permalink to &quot;**Module** \`mbcp.mp_math.line\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็š„็›ด็บฟ็ฑป</p><h3 id="class-line3" tabindex="-1"><em><strong>class</strong></em> <code>Line3</code> <a class="header-anchor" href="#class-line3" aria-label="Permalink to &quot;***class*** \`Line3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-point-point3-direction-vector3" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, point: Point3, direction: Vector3)</code> <a class="header-anchor" href="#method-init-self-point-point3-direction-vector3" aria-label="Permalink to &quot;***method*** \`__init__(self, point: Point3, direction: Vector3)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: ไธ‰็ปด็ฉบ้—ดไธญ็š„็›ด็บฟใ€‚็”ฑไธ€ไธช็‚นๅ’Œไธ€ไธชๆ–นๅ‘ๅ‘้‡็กฎๅฎšใ€‚</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>point (<a href="./point.html#class-point3"><code>Point3</code></a>): ็›ด็บฟไธŠ็š„ไธ€็‚น</li><li>direction (<a href="./vector.html#class-vector3"><code>Vector3</code></a>): ๆ–นๅ‘ๅ‘้‡</li></ul></blockquote><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/line.py#L19" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, point: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Point3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, direction: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Vector3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ไธ‰็ปด็ฉบ้—ดไธญ็š„็›ด็บฟใ€‚็”ฑไธ€ไธช็‚นๅ’Œไธ€ไธชๆ–นๅ‘ๅ‘้‡็กฎๅฎšใ€‚</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const y=JSON.parse('{"title":"mbcp.mp_math.plane","description":"","frontmatter":{"title":"mbcp.mp_math.plane","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/plane.md","filePath":"en/api/mp_math/plane.md"}'),t={name:"en/api/mp_math/plane.md"},l=n(`<h1 id="mbcp-mp-math-plane" tabindex="-1">mbcp.mp_math.plane <a class="header-anchor" href="#mbcp-mp-math-plane" aria-label="Permalink to &quot;mbcp.mp_math.plane&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็š„ๅนณ้ข็ฑป</p><h3 id="class-plane3" tabindex="-1"><em><strong>class</strong></em> <code>Plane3</code> <a class="header-anchor" href="#class-plane3" aria-label="Permalink to &quot;***class*** \`Plane3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-a-float-b-float-c-float-d-float" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, a: float, b: float, c: float, d: float)</code> <a class="header-anchor" href="#method-init-self-a-float-b-float-c-float-d-float" aria-label="Permalink to &quot;***method*** \`__init__(self, a: float, b: float, c: float, d: float)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: ๅนณ้ขๆ–น็จ‹๏ผšax + by + cz + d = 0</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>a (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): x็ณปๆ•ฐ</li><li>b (<code>float</code>): y็ณปๆ•ฐ</li><li>c (<code>float</code>): z็ณปๆ•ฐ</li><li>d (<code>float</code>): ๅธธๆ•ฐ้กน</li></ul></blockquote><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/plane.py#L20" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, a: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, b: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, c: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, d: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const y=JSON.parse('{"title":"mbcp.mp_math.plane","description":"","frontmatter":{"title":"mbcp.mp_math.plane","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/plane.md","filePath":"en/api/mp_math/plane.md"}'),l={name:"en/api/mp_math/plane.md"},t=n(`<h1 id="module-mbcp-mp-math-plane" tabindex="-1"><strong>Module</strong> <code>mbcp.mp_math.plane</code> <a class="header-anchor" href="#module-mbcp-mp-math-plane" aria-label="Permalink to &quot;**Module** \`mbcp.mp_math.plane\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็š„ๅนณ้ข็ฑป</p><h3 id="class-plane3" tabindex="-1"><em><strong>class</strong></em> <code>Plane3</code> <a class="header-anchor" href="#class-plane3" aria-label="Permalink to &quot;***class*** \`Plane3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-a-float-b-float-c-float-d-float" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, a: float, b: float, c: float, d: float)</code> <a class="header-anchor" href="#method-init-self-a-float-b-float-c-float-d-float" aria-label="Permalink to &quot;***method*** \`__init__(self, a: float, b: float, c: float, d: float)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: ๅนณ้ขๆ–น็จ‹๏ผšax + by + cz + d = 0</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>a (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): x็ณปๆ•ฐ</li><li>b (<code>float</code>): y็ณปๆ•ฐ</li><li>c (<code>float</code>): z็ณปๆ•ฐ</li><li>d (<code>float</code>): ๅธธๆ•ฐ้กน</li></ul></blockquote><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/plane.py#L20" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, a: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, b: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, c: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, d: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ๅนณ้ขๆ–น็จ‹๏ผšax + by + cz + d = 0</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
@ -203,4 +203,4 @@ import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const y
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> [\`bool\`](https%3A//docs.python.org/3/library/functions.html#bool): ๆ˜ฏๅฆ็ญ‰ไปท</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.approx(other)</span></span></code></pre></div></details><h4 id="method-rand-self-other-line3-point3" tabindex="-1"><em><strong>method</strong></em> <code>__rand__(self, other: Line3) -&gt; Point3</code> <a class="header-anchor" href="#method-rand-self-other-line3-point3" aria-label="Permalink to &quot;***method*** \`__rand__(self, other: Line3) -&gt; Point3\`&quot;">โ€‹</a></h4><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/plane.py#L294" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __rand__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, other: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Line3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) -&gt; </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Point3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.cal_intersection_point3(other)</span></span></code></pre></div></details>`,113),h=[l];function e(p,k,r,o,d,E){return a(),i("div",null,h)}const c=s(t,[["render",e]]);export{y as __pageData,c as default};
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.cal_intersection_point3(other)</span></span></code></pre></div></details>`,113),h=[t];function e(p,k,r,o,d,E){return a(),i("div",null,h)}const c=s(l,[["render",e]]);export{y as __pageData,c as default};

View File

@ -1 +1 @@
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const y=JSON.parse('{"title":"mbcp.mp_math.plane","description":"","frontmatter":{"title":"mbcp.mp_math.plane","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/plane.md","filePath":"en/api/mp_math/plane.md"}'),t={name:"en/api/mp_math/plane.md"},l=n("",113),h=[l];function e(p,k,r,o,d,E){return a(),i("div",null,h)}const c=s(t,[["render",e]]);export{y as __pageData,c as default};
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const y=JSON.parse('{"title":"mbcp.mp_math.plane","description":"","frontmatter":{"title":"mbcp.mp_math.plane","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/plane.md","filePath":"en/api/mp_math/plane.md"}'),l={name:"en/api/mp_math/plane.md"},t=n("",113),h=[t];function e(p,k,r,o,d,E){return a(),i("div",null,h)}const c=s(l,[["render",e]]);export{y as __pageData,c as default};

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const E=JSON.parse('{"title":"mbcp.mp_math.point","description":"","frontmatter":{"title":"mbcp.mp_math.point","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/point.md","filePath":"en/api/mp_math/point.md"}'),n={name:"en/api/mp_math/point.md"},e=t(`<h1 id="mbcp-mp-math-point" tabindex="-1">mbcp.mp_math.point <a class="header-anchor" href="#mbcp-mp-math-point" aria-label="Permalink to &quot;mbcp.mp_math.point&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็‚น็š„็ฑปใ€‚</p><h3 id="class-point3" tabindex="-1"><em><strong>class</strong></em> <code>Point3</code> <a class="header-anchor" href="#class-point3" aria-label="Permalink to &quot;***class*** \`Point3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-x-float-y-float-z-float" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, x: float, y: float, z: float)</code> <a class="header-anchor" href="#method-init-self-x-float-y-float-z-float" aria-label="Permalink to &quot;***method*** \`__init__(self, x: float, y: float, z: float)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: ็ฌ›ๅกๅฐ”ๅๆ ‡็ณปไธญ็š„็‚นใ€‚</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>x (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): x ๅๆ ‡</li><li>y (<code>float</code>): y ๅๆ ‡</li><li>z (<code>float</code>): z ๅๆ ‡</li></ul></blockquote><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/point.py#L15" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, x: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, y: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, z: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const E=JSON.parse('{"title":"mbcp.mp_math.point","description":"","frontmatter":{"title":"mbcp.mp_math.point","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/point.md","filePath":"en/api/mp_math/point.md"}'),n={name:"en/api/mp_math/point.md"},e=t(`<h1 id="module-mbcp-mp-math-point" tabindex="-1"><strong>Module</strong> <code>mbcp.mp_math.point</code> <a class="header-anchor" href="#module-mbcp-mp-math-point" aria-label="Permalink to &quot;**Module** \`mbcp.mp_math.point\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็‚น็š„็ฑปใ€‚</p><h3 id="class-point3" tabindex="-1"><em><strong>class</strong></em> <code>Point3</code> <a class="header-anchor" href="#class-point3" aria-label="Permalink to &quot;***class*** \`Point3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-x-float-y-float-z-float" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, x: float, y: float, z: float)</code> <a class="header-anchor" href="#method-init-self-x-float-y-float-z-float" aria-label="Permalink to &quot;***method*** \`__init__(self, x: float, y: float, z: float)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: ็ฌ›ๅกๅฐ”ๅๆ ‡็ณปไธญ็š„็‚นใ€‚</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>x (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): x ๅๆ ‡</li><li>y (<code>float</code>): y ๅๆ ‡</li><li>z (<code>float</code>): z ๅๆ ‡</li></ul></blockquote><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/point.py#L15" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, x: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, y: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, z: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ็ฌ›ๅกๅฐ”ๅๆ ‡็ณปไธญ็š„็‚นใ€‚</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
@ -49,4 +49,4 @@ import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const E
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> [\`Vector3\`](./vector#class-vector3): ๆ–ฐ็š„ๅ‘้‡</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> from</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> .vector </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Vector3</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Vector3(</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.x </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> other.x, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.y </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> other.y, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.z </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> other.z)</span></span></code></pre></div></details>`,39),h=[e];function l(p,o,k,r,d,c){return a(),i("div",null,h)}const y=s(n,[["render",l]]);export{E as __pageData,y as default};
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Vector3(</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.x </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> other.x, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.y </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> other.y, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.z </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> other.z)</span></span></code></pre></div></details>`,39),l=[e];function h(p,o,k,r,d,c){return a(),i("div",null,l)}const y=s(n,[["render",h]]);export{E as __pageData,y as default};

View File

@ -1 +1 @@
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const E=JSON.parse('{"title":"mbcp.mp_math.point","description":"","frontmatter":{"title":"mbcp.mp_math.point","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/point.md","filePath":"en/api/mp_math/point.md"}'),n={name:"en/api/mp_math/point.md"},e=t("",39),h=[e];function l(p,o,k,r,d,c){return a(),i("div",null,h)}const y=s(n,[["render",l]]);export{E as __pageData,y as default};
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const E=JSON.parse('{"title":"mbcp.mp_math.point","description":"","frontmatter":{"title":"mbcp.mp_math.point","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/point.md","filePath":"en/api/mp_math/point.md"}'),n={name:"en/api/mp_math/point.md"},e=t("",39),l=[e];function h(p,o,k,r,d,c){return a(),i("div",null,l)}const y=s(n,[["render",h]]);export{E as __pageData,y as default};

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const F=JSON.parse('{"title":"mbcp.mp_math.segment","description":"","frontmatter":{"title":"mbcp.mp_math.segment","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/segment.md","filePath":"en/api/mp_math/segment.md"}'),t={name:"en/api/mp_math/segment.md"},p=n(`<h1 id="mbcp-mp-math-segment" tabindex="-1">mbcp.mp_math.segment <a class="header-anchor" href="#mbcp-mp-math-segment" aria-label="Permalink to &quot;mbcp.mp_math.segment&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็š„็บฟๆฎต็ฑป</p><h3 id="class-segment3" tabindex="-1"><em><strong>class</strong></em> <code>Segment3</code> <a class="header-anchor" href="#class-segment3" aria-label="Permalink to &quot;***class*** \`Segment3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-p1-point3-p2-point3" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, p1: Point3, p2: Point3)</code> <a class="header-anchor" href="#method-init-self-p1-point3-p2-point3" aria-label="Permalink to &quot;***method*** \`__init__(self, p1: Point3, p2: Point3)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: ไธ‰็ปด็ฉบ้—ดไธญ็š„็บฟๆฎตใ€‚</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>p1 (<a href="./point.html#class-point3"><code>Point3</code></a>): ็บฟๆฎต็š„ไธ€ไธช็ซฏ็‚น</li><li>p2 (<a href="./point.html#class-point3"><code>Point3</code></a>): ็บฟๆฎต็š„ๅฆไธ€ไธช็ซฏ็‚น</li></ul></blockquote><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/segment.py#L14" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, p1: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Point3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, p2: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Point3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const c=JSON.parse('{"title":"mbcp.mp_math.segment","description":"","frontmatter":{"title":"mbcp.mp_math.segment","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/segment.md","filePath":"en/api/mp_math/segment.md"}'),t={name:"en/api/mp_math/segment.md"},p=n(`<h1 id="module-mbcp-mp-math-segment" tabindex="-1"><strong>Module</strong> <code>mbcp.mp_math.segment</code> <a class="header-anchor" href="#module-mbcp-mp-math-segment" aria-label="Permalink to &quot;**Module** \`mbcp.mp_math.segment\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ‰็ปด็ฉบ้—ดไธญ็š„็บฟๆฎต็ฑป</p><h3 id="class-segment3" tabindex="-1"><em><strong>class</strong></em> <code>Segment3</code> <a class="header-anchor" href="#class-segment3" aria-label="Permalink to &quot;***class*** \`Segment3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-p1-point3-p2-point3" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, p1: Point3, p2: Point3)</code> <a class="header-anchor" href="#method-init-self-p1-point3-p2-point3" aria-label="Permalink to &quot;***method*** \`__init__(self, p1: Point3, p2: Point3)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: ไธ‰็ปด็ฉบ้—ดไธญ็š„็บฟๆฎตใ€‚</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>p1 (<a href="./point.html#class-point3"><code>Point3</code></a>): ็บฟๆฎต็š„ไธ€ไธช็ซฏ็‚น</li><li>p2 (<a href="./point.html#class-point3"><code>Point3</code></a>): ็บฟๆฎต็š„ๅฆไธ€ไธช็ซฏ็‚น</li></ul></blockquote><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/segment.py#L14" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, p1: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Point3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, p2: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Point3&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ไธ‰็ปด็ฉบ้—ดไธญ็š„็บฟๆฎตใ€‚</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
@ -12,4 +12,4 @@ import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const F
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;้•ฟๅบฆ&#39;</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.length </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.direction.length</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &#39;ไธญๅฟƒ็‚น&#39;</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.midpoint </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Point3((</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p1.x </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">+</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p2.x) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, (</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p1.y </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">+</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p2.y) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, (</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p1.z </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">+</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p2.z) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div></details>`,8),h=[p];function e(l,k,r,d,o,E){return a(),i("div",null,h)}const c=s(t,[["render",e]]);export{F as __pageData,c as default};
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.midpoint </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Point3((</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p1.x </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">+</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p2.x) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, (</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p1.y </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">+</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p2.y) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, (</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p1.z </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">+</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.p2.z) </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">/</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 2</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div></details>`,8),h=[p];function e(l,k,r,d,o,E){return a(),i("div",null,h)}const F=s(t,[["render",e]]);export{c as __pageData,F as default};

View File

@ -1 +1 @@
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const F=JSON.parse('{"title":"mbcp.mp_math.segment","description":"","frontmatter":{"title":"mbcp.mp_math.segment","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/segment.md","filePath":"en/api/mp_math/segment.md"}'),t={name:"en/api/mp_math/segment.md"},p=n("",8),h=[p];function e(l,k,r,d,o,E){return a(),i("div",null,h)}const c=s(t,[["render",e]]);export{F as __pageData,c as default};
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const c=JSON.parse('{"title":"mbcp.mp_math.segment","description":"","frontmatter":{"title":"mbcp.mp_math.segment","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/segment.md","filePath":"en/api/mp_math/segment.md"}'),t={name:"en/api/mp_math/segment.md"},p=n("",8),h=[p];function e(l,k,r,d,o,E){return a(),i("div",null,h)}const F=s(t,[["render",e]]);export{c as __pageData,F as default};

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const F=JSON.parse('{"title":"mbcp.mp_math.utils","description":"","frontmatter":{"title":"mbcp.mp_math.utils","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/utils.md","filePath":"en/api/mp_math/utils.md"}'),n={name:"en/api/mp_math/utils.md"},l=t(`<h1 id="mbcp-mp-math-utils" tabindex="-1">mbcp.mp_math.utils <a class="header-anchor" href="#mbcp-mp-math-utils" aria-label="Permalink to &quot;mbcp.mp_math.utils&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ€ไบ›ๅธธ็”จ็š„ๅทฅๅ…ทๅ‡ฝๆ•ฐ</p><h3 id="func-clamp-x-float-min-float-max-float-float" tabindex="-1"><em><strong>func</strong></em> <code>clamp(x: float, min_: float, max_: float) -&gt; float</code> <a class="header-anchor" href="#func-clamp-x-float-min-float-max-float-float" aria-label="Permalink to &quot;***func*** \`clamp(x: float, min_: float, max_: float) -&gt; float\`&quot;">โ€‹</a></h3><p><strong>Description</strong>: ๅŒบ้—ด้™ๅฎšๅ‡ฝๆ•ฐ</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>x (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): ๅ€ผ</li><li>min_ (<code>float</code>): ๆœ€ๅฐๅ€ผ</li><li>max_ (<code>float</code>): ๆœ€ๅคงๅ€ผ</li></ul></blockquote><p><strong>Return</strong>: <code>float</code>: ้™ๅฎšๅœจๅŒบ้—ดๅ†…็š„ๅ€ผ</p><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/utils.py#L17" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> clamp</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(x: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, min_: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, max_: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) -&gt; </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const F=JSON.parse('{"title":"mbcp.mp_math.utils","description":"","frontmatter":{"title":"mbcp.mp_math.utils","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/utils.md","filePath":"en/api/mp_math/utils.md"}'),n={name:"en/api/mp_math/utils.md"},l=t(`<h1 id="module-mbcp-mp-math-utils" tabindex="-1"><strong>Module</strong> <code>mbcp.mp_math.utils</code> <a class="header-anchor" href="#module-mbcp-mp-math-utils" aria-label="Permalink to &quot;**Module** \`mbcp.mp_math.utils\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†ไธ€ไบ›ๅธธ็”จ็š„ๅทฅๅ…ทๅ‡ฝๆ•ฐ</p><h3 id="func-clamp-x-float-min-float-max-float-float" tabindex="-1"><em><strong>func</strong></em> <code>clamp(x: float, min_: float, max_: float) -&gt; float</code> <a class="header-anchor" href="#func-clamp-x-float-min-float-max-float-float" aria-label="Permalink to &quot;***func*** \`clamp(x: float, min_: float, max_: float) -&gt; float\`&quot;">โ€‹</a></h3><p><strong>Description</strong>: ๅŒบ้—ด้™ๅฎšๅ‡ฝๆ•ฐ</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>x (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): ๅ€ผ</li><li>min_ (<code>float</code>): ๆœ€ๅฐๅ€ผ</li><li>max_ (<code>float</code>): ๆœ€ๅคงๅ€ผ</li></ul></blockquote><p><strong>Return</strong>: <code>float</code>: ้™ๅฎšๅœจๅŒบ้—ดๅ†…็š„ๅ€ผ</p><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/utils.py#L17" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> clamp</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(x: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, min_: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, max_: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) -&gt; </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ๅŒบ้—ด้™ๅฎšๅ‡ฝๆ•ฐ</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const E=JSON.parse('{"title":"mbcp.mp_math.vector","description":"","frontmatter":{"title":"mbcp.mp_math.vector","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/vector.md","filePath":"en/api/mp_math/vector.md"}'),n={name:"en/api/mp_math/vector.md"},e=t(`<h1 id="mbcp-mp-math-vector" tabindex="-1">mbcp.mp_math.vector <a class="header-anchor" href="#mbcp-mp-math-vector" aria-label="Permalink to &quot;mbcp.mp_math.vector&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†3็ปดๅ‘้‡็š„็ฑปVector3๏ผŒไปฅๅŠไธ€ไบ›ๅธธ็”จ็š„ๅ‘้‡ใ€‚</p><h3 id="class-vector3" tabindex="-1"><em><strong>class</strong></em> <code>Vector3</code> <a class="header-anchor" href="#class-vector3" aria-label="Permalink to &quot;***class*** \`Vector3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-x-float-y-float-z-float" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, x: float, y: float, z: float)</code> <a class="header-anchor" href="#method-init-self-x-float-y-float-z-float" aria-label="Permalink to &quot;***method*** \`__init__(self, x: float, y: float, z: float)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: 3็ปดๅ‘้‡</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>x (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): x่ฝดๅˆ†้‡</li><li>y (<code>float</code>): y่ฝดๅˆ†้‡</li><li>z (<code>float</code>): z่ฝดๅˆ†้‡</li></ul></blockquote><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/vector.py#L18" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, x: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, y: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, z: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DpC1ZpOZ.js";const E=JSON.parse('{"title":"mbcp.mp_math.vector","description":"","frontmatter":{"title":"mbcp.mp_math.vector","lastUpdated":false},"headers":[],"relativePath":"en/api/mp_math/vector.md","filePath":"en/api/mp_math/vector.md"}'),n={name:"en/api/mp_math/vector.md"},e=t(`<h1 id="module-mbcp-mp-math-vector" tabindex="-1"><strong>Module</strong> <code>mbcp.mp_math.vector</code> <a class="header-anchor" href="#module-mbcp-mp-math-vector" aria-label="Permalink to &quot;**Module** \`mbcp.mp_math.vector\`&quot;">โ€‹</a></h1><p>ๆœฌๆจกๅ—ๅฎšไน‰ไบ†3็ปดๅ‘้‡็š„็ฑปVector3๏ผŒไปฅๅŠไธ€ไบ›ๅธธ็”จ็š„ๅ‘้‡ใ€‚</p><h3 id="class-vector3" tabindex="-1"><em><strong>class</strong></em> <code>Vector3</code> <a class="header-anchor" href="#class-vector3" aria-label="Permalink to &quot;***class*** \`Vector3\`&quot;">โ€‹</a></h3><h4 id="method-init-self-x-float-y-float-z-float" tabindex="-1"><em><strong>method</strong></em> <code>__init__(self, x: float, y: float, z: float)</code> <a class="header-anchor" href="#method-init-self-x-float-y-float-z-float" aria-label="Permalink to &quot;***method*** \`__init__(self, x: float, y: float, z: float)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: 3็ปดๅ‘้‡</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>x (<a href="https://docs.python.org/3/library/functions.html#float" target="_blank" rel="noreferrer"><code>float</code></a>): x่ฝดๅˆ†้‡</li><li>y (<code>float</code>): y่ฝดๅˆ†้‡</li><li>z (<code>float</code>): z่ฝดๅˆ†้‡</li></ul></blockquote><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/vector.py#L18" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __init__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, x: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, y: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, z: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 3็ปดๅ‘้‡</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>

View File

@ -1 +0,0 @@
import{_ as a,c as t,o as c,j as e,a as r}from"./chunks/framework.DpC1ZpOZ.js";const b=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/particle/index.md","filePath":"en/api/particle/index.md"}'),i={name:"en/api/particle/index.md"},p=e("h1",{id:"mbcp-particle",tabindex:"-1"},[r("mbcp.particle "),e("a",{class:"header-anchor",href:"#mbcp-particle","aria-label":'Permalink to "mbcp.particle"'},"โ€‹")],-1),n=e("p",null,"ๆœฌๆจกๅ—ๅฎšไน‰ไบ†็ฒ’ๅญ็”Ÿๆˆ็›ธๅ…ณ็š„ๅทฅๅ…ท",-1),s=[p,n];function l(o,d,_,m,h,f){return c(),t("div",null,s)}const u=a(i,[["render",l]]);export{b as __pageData,u as default};

View File

@ -1 +0,0 @@
import{_ as a,c as t,o as c,j as e,a as r}from"./chunks/framework.DpC1ZpOZ.js";const b=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/particle/index.md","filePath":"en/api/particle/index.md"}'),i={name:"en/api/particle/index.md"},p=e("h1",{id:"mbcp-particle",tabindex:"-1"},[r("mbcp.particle "),e("a",{class:"header-anchor",href:"#mbcp-particle","aria-label":'Permalink to "mbcp.particle"'},"โ€‹")],-1),n=e("p",null,"ๆœฌๆจกๅ—ๅฎšไน‰ไบ†็ฒ’ๅญ็”Ÿๆˆ็›ธๅ…ณ็š„ๅทฅๅ…ท",-1),s=[p,n];function l(o,d,_,m,h,f){return c(),t("div",null,s)}const u=a(i,[["render",l]]);export{b as __pageData,u as default};

View File

@ -0,0 +1 @@
import{_ as t,c,o as l,j as e,a}from"./chunks/framework.DpC1ZpOZ.js";const x=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/particle/index.md","filePath":"en/api/particle/index.md"}'),r={name:"en/api/particle/index.md"},i=e("h1",{id:"module-mbcp-particle",tabindex:"-1"},[e("strong",null,"Module"),a(),e("code",null,"mbcp.particle"),a(),e("a",{class:"header-anchor",href:"#module-mbcp-particle","aria-label":'Permalink to "**Module** `mbcp.particle`"'},"โ€‹")],-1),o=e("p",null,"ๆœฌๆจกๅ—ๅฎšไน‰ไบ†็ฒ’ๅญ็”Ÿๆˆ็›ธๅ…ณ็š„ๅทฅๅ…ท",-1),n=[i,o];function p(s,d,m,_,u,h){return l(),c("div",null,n)}const b=t(r,[["render",p]]);export{x as __pageData,b as default};

View File

@ -0,0 +1 @@
import{_ as t,c,o as l,j as e,a}from"./chunks/framework.DpC1ZpOZ.js";const x=JSON.parse('{"title":"mbcp.particle","description":"","frontmatter":{"title":"mbcp.particle","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/particle/index.md","filePath":"en/api/particle/index.md"}'),r={name:"en/api/particle/index.md"},i=e("h1",{id:"module-mbcp-particle",tabindex:"-1"},[e("strong",null,"Module"),a(),e("code",null,"mbcp.particle"),a(),e("a",{class:"header-anchor",href:"#module-mbcp-particle","aria-label":'Permalink to "**Module** `mbcp.particle`"'},"โ€‹")],-1),o=e("p",null,"ๆœฌๆจกๅ—ๅฎšไน‰ไบ†็ฒ’ๅญ็”Ÿๆˆ็›ธๅ…ณ็š„ๅทฅๅ…ท",-1),n=[i,o];function p(s,d,m,_,u,h){return l(),c("div",null,n)}const b=t(r,[["render",p]]);export{x as __pageData,b as default};

View File

@ -1 +0,0 @@
import{_ as t,c as s,o as a,j as e,a as r}from"./chunks/framework.DpC1ZpOZ.js";const b=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/presets/index.md","filePath":"en/api/presets/index.md"}'),p={name:"en/api/presets/index.md"},n=e("h1",{id:"mbcp-presets",tabindex:"-1"},[r("mbcp.presets "),e("a",{class:"header-anchor",href:"#mbcp-presets","aria-label":'Permalink to "mbcp.presets"'},"โ€‹")],-1),c=e("p",null,"ๆœฌๆจกๅ—ๅกžไบ†ไธ€ไบ›้ข„่ฎพ",-1),o=[n,c];function d(i,l,_,m,h,f){return a(),s("div",null,o)}const u=t(p,[["render",d]]);export{b as __pageData,u as default};

View File

@ -1 +0,0 @@
import{_ as t,c as s,o as a,j as e,a as r}from"./chunks/framework.DpC1ZpOZ.js";const b=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/presets/index.md","filePath":"en/api/presets/index.md"}'),p={name:"en/api/presets/index.md"},n=e("h1",{id:"mbcp-presets",tabindex:"-1"},[r("mbcp.presets "),e("a",{class:"header-anchor",href:"#mbcp-presets","aria-label":'Permalink to "mbcp.presets"'},"โ€‹")],-1),c=e("p",null,"ๆœฌๆจกๅ—ๅกžไบ†ไธ€ไบ›้ข„่ฎพ",-1),o=[n,c];function d(i,l,_,m,h,f){return a(),s("div",null,o)}const u=t(p,[["render",d]]);export{b as __pageData,u as default};

View File

@ -0,0 +1 @@
import{_ as s,c as a,o as r,j as e,a as t}from"./chunks/framework.DpC1ZpOZ.js";const x=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/presets/index.md","filePath":"en/api/presets/index.md"}'),o={name:"en/api/presets/index.md"},n=e("h1",{id:"module-mbcp-presets",tabindex:"-1"},[e("strong",null,"Module"),t(),e("code",null,"mbcp.presets"),t(),e("a",{class:"header-anchor",href:"#module-mbcp-presets","aria-label":'Permalink to "**Module** `mbcp.presets`"'},"โ€‹")],-1),p=e("p",null,"ๆœฌๆจกๅ—ๅกžไบ†ไธ€ไบ›้ข„่ฎพ",-1),c=[n,p];function d(l,i,m,_,u,h){return r(),a("div",null,c)}const b=s(o,[["render",d]]);export{x as __pageData,b as default};

View File

@ -0,0 +1 @@
import{_ as s,c as a,o as r,j as e,a as t}from"./chunks/framework.DpC1ZpOZ.js";const x=JSON.parse('{"title":"mbcp.presets","description":"","frontmatter":{"title":"mbcp.presets","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/presets/index.md","filePath":"en/api/presets/index.md"}'),o={name:"en/api/presets/index.md"},n=e("h1",{id:"module-mbcp-presets",tabindex:"-1"},[e("strong",null,"Module"),t(),e("code",null,"mbcp.presets"),t(),e("a",{class:"header-anchor",href:"#module-mbcp-presets","aria-label":'Permalink to "**Module** `mbcp.presets`"'},"โ€‹")],-1),p=e("p",null,"ๆœฌๆจกๅ—ๅกžไบ†ไธ€ไบ›้ข„่ฎพ",-1),c=[n,p];function d(l,i,m,_,u,h){return r(),a("div",null,c)}const b=s(o,[["render",d]]);export{x as __pageData,b as default};

View File

@ -1,4 +1,4 @@
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const y=JSON.parse('{"title":"mbcp.presets.model","description":"","frontmatter":{"title":"mbcp.presets.model","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/presets/model/index.md","filePath":"en/api/presets/model/index.md"}'),t={name:"en/api/presets/model/index.md"},h=n(`<h1 id="mbcp-presets-model" tabindex="-1">mbcp.presets.model <a class="header-anchor" href="#mbcp-presets-model" aria-label="Permalink to &quot;mbcp.presets.model&quot;">โ€‹</a></h1><p>ๅ‡ ไฝ•ๆจกๅž‹็‚น้›†</p><h3 id="class-geometricmodels" tabindex="-1"><em><strong>class</strong></em> <code>GeometricModels</code> <a class="header-anchor" href="#class-geometricmodels" aria-label="Permalink to &quot;***class*** \`GeometricModels\`&quot;">โ€‹</a></h3><p><a href="https://docs.python.org/3/library/functions.html#staticmethod" target="_blank" rel="noreferrer"><code>@staticmethod</code></a></p><h4 id="method-sphere-radius-float-density-float" tabindex="-1"><em><strong>method</strong></em> <code>sphere(radius: float, density: float)</code> <a class="header-anchor" href="#method-sphere-radius-float-density-float" aria-label="Permalink to &quot;***method*** \`sphere(radius: float, density: float)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: ็”Ÿๆˆ็ƒไฝ“ไธŠ็š„็‚น้›†ใ€‚</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>radius:</li><li>density:</li></ul></blockquote><p><strong>Return</strong>: List[Point3]: ็ƒไฝ“ไธŠ็š„็‚น้›†ใ€‚</p><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/presets/model/__init__.py#L12" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">@</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">staticmethod</span></span>
import{_ as s,c as i,o as a,a4 as n}from"./chunks/framework.DpC1ZpOZ.js";const y=JSON.parse('{"title":"mbcp.presets.model","description":"","frontmatter":{"title":"mbcp.presets.model","lastUpdated":false,"collapsed":true},"headers":[],"relativePath":"en/api/presets/model/index.md","filePath":"en/api/presets/model/index.md"}'),t={name:"en/api/presets/model/index.md"},h=n(`<h1 id="module-mbcp-presets-model" tabindex="-1"><strong>Module</strong> <code>mbcp.presets.model</code> <a class="header-anchor" href="#module-mbcp-presets-model" aria-label="Permalink to &quot;**Module** \`mbcp.presets.model\`&quot;">โ€‹</a></h1><p>ๅ‡ ไฝ•ๆจกๅž‹็‚น้›†</p><h3 id="class-geometricmodels" tabindex="-1"><em><strong>class</strong></em> <code>GeometricModels</code> <a class="header-anchor" href="#class-geometricmodels" aria-label="Permalink to &quot;***class*** \`GeometricModels\`&quot;">โ€‹</a></h3><p><a href="https://docs.python.org/3/library/functions.html#staticmethod" target="_blank" rel="noreferrer"><code>@staticmethod</code></a></p><h4 id="method-sphere-radius-float-density-float" tabindex="-1"><em><strong>method</strong></em> <code>sphere(radius: float, density: float)</code> <a class="header-anchor" href="#method-sphere-radius-float-density-float" aria-label="Permalink to &quot;***method*** \`sphere(radius: float, density: float)\`&quot;">โ€‹</a></h4><p><strong>Description</strong>: ็”Ÿๆˆ็ƒไฝ“ไธŠ็š„็‚น้›†ใ€‚</p><p><strong>Arguments</strong>:</p><blockquote><ul><li>radius:</li><li>density:</li></ul></blockquote><p><strong>Return</strong>: List[Point3]: ็ƒไฝ“ไธŠ็š„็‚น้›†ใ€‚</p><details><summary><b>Source code</b> or <a href="https://github.com/snowykami/mbcp/tree/main/mbcp/presets/model/__init__.py#L12" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">@</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">staticmethod</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> sphere</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(radius: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, density: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">float</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;&quot;&quot;</span></span>
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ็”Ÿๆˆ็ƒไฝ“ไธŠ็š„็‚น้›†ใ€‚</span></span>

Some files were not shown because too many files have changed in this diff Show More