mirror of
https://github.com/snowykami/mbcp.git
synced 2024-11-23 06:37:38 +08:00
Deploying to docs from @ snowykami/mbcp@10d05375a4 ๐
This commit is contained in:
parent
7d5136952b
commit
7daa324220
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
@ -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 "mbcp"">โ</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 "**ๆจกๅ** `mbcp`"">โ</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};
|
@ -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 "mbcp.mp_math.angle"">โ</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 "***class*** \`Angle\`"">โ</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 "***class*** \`AnyAngle(Angle)\`"">โ</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 "***method*** \`__init__(self, value: float, is_radian: bool = False)\`"">โ</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 "**ๆจกๅ** \`mbcp.mp_math.angle\`"">โ</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 "***class*** \`Angle\`"">โ</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 "***class*** \`AnyAngle(Angle)\`"">โ</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 "***method*** \`__init__(self, value: float, is_radian: bool = False)\`"">โ</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;"> """</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;"> ไปปๆ่งๅบฆใ</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>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
|
@ -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 "mbcp.mp_math.const"">โ</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 "var `PI`"">โ</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 "var `E`"">โ</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 "var `GOLDEN_RATIO`"">โ</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 "var `GAMMA`"">โ</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 "var `EPSILON`"">โ</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 "var `APPROX`"">โ</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 "**ๆจกๅ** `mbcp.mp_math.const`"">โ</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 "var `PI`"">โ</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 "var `E`"">โ</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 "var `GOLDEN_RATIO`"">โ</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 "var `GAMMA`"">โ</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 "var `EPSILON`"">โ</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 "var `APPROX`"">โ</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};
|
@ -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};
|
@ -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 "mbcp.mp_math.equation"">โ</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 "***class*** \`CurveEquation\`"">โ</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 "***method*** \`__init__(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc)\`"">โ</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 "**ๆจกๅ** \`mbcp.mp_math.equation\`"">โ</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 "***class*** \`CurveEquation\`"">โ</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 "***method*** \`__init__(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc)\`"">โ</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;"> """</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;"> ๆฒ็บฟๆน็จใ</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>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
|
File diff suppressed because one or more lines are too long
@ -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 "mbcp.mp_math"">โ</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 "**ๆจกๅ** `mbcp.mp_math`"">โ</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};
|
@ -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 "mbcp.mp_math.line"">โ</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 "***class*** \`Line3\`"">โ</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 "***method*** \`__init__(self, point: Point3, direction: Vector3)\`"">โ</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;">'Point3'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, direction: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'Vector3'</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 "**ๆจกๅ** \`mbcp.mp_math.line\`"">โ</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 "***class*** \`Line3\`"">โ</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 "***method*** \`__init__(self, point: Point3, direction: Vector3)\`"">โ</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;">'Point3'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, direction: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'Vector3'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</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;"> """</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;"> ไธ็ปด็ฉบ้ดไธญ็็ด็บฟใ็ฑไธไธช็นๅไธไธชๆนๅๅ้็กฎๅฎใ</span></span>
|
||||||
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
|
File diff suppressed because one or more lines are too long
@ -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 "mbcp.mp_math.plane"">โ</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 "***class*** \`Plane3\`"">โ</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 "***method*** \`__init__(self, a: float, b: float, c: float, d: float)\`"">โ</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 "**ๆจกๅ** \`mbcp.mp_math.plane\`"">โ</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 "***class*** \`Plane3\`"">โ</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 "***method*** \`__init__(self, a: float, b: float, c: float, d: float)\`"">โ</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;"> """</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;"> ๅนณ้ขๆน็จ๏ผax + by + cz + d = 0</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>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
|
@ -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 "mbcp.mp_math.point"">โ</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 "***class*** \`Point3\`"">โ</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 "***method*** \`__init__(self, x: float, y: float, z: float)\`"">โ</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 "**ๆจกๅ** \`mbcp.mp_math.point\`"">โ</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 "***class*** \`Point3\`"">โ</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 "***method*** \`__init__(self, x: float, y: float, z: float)\`"">โ</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;"> """</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;"> ็ฌๅกๅฐๅๆ ็ณปไธญ็็นใ</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>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
|
@ -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 "mbcp.mp_math.segment"">โ</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 "***class*** \`Segment3\`"">โ</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 "***method*** \`__init__(self, p1: Point3, p2: Point3)\`"">โ</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;">'Point3'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, p2: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'Point3'</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 "**ๆจกๅ** \`mbcp.mp_math.segment\`"">โ</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 "***class*** \`Segment3\`"">โ</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 "***method*** \`__init__(self, p1: Point3, p2: Point3)\`"">โ</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;">'Point3'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, p2: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'Point3'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</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;"> """</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;"> ไธ็ปด็ฉบ้ดไธญ็็บฟๆฎตใ</span></span>
|
||||||
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</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;"> '้ฟๅบฆ'</span></span>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> '้ฟๅบฆ'</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:#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;"> 'ไธญๅฟ็น'</span></span>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 'ไธญๅฟ็น'</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};
|
@ -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};
|
@ -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 "mbcp.mp_math.utils"">โ</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) -> float</code> <a class="header-anchor" href="#func-clamp-x-float-min-float-max-float-float" aria-label="Permalink to "***func*** \`clamp(x: float, min_: float, max_: float) -> float\`"">โ</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;">) -> </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 "**ๆจกๅ** \`mbcp.mp_math.utils\`"">โ</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) -> float</code> <a class="header-anchor" href="#func-clamp-x-float-min-float-max-float-float" aria-label="Permalink to "***func*** \`clamp(x: float, min_: float, max_: float) -> float\`"">โ</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;">) -> </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;"> """</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;"> ๅบ้ด้ๅฎๅฝๆฐ</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>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
|
@ -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 "mbcp.mp_math.vector"">โ</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 "***class*** \`Vector3\`"">โ</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 "***method*** \`__init__(self, x: float, y: float, z: float)\`"">โ</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 "**ๆจกๅ** \`mbcp.mp_math.vector\`"">โ</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 "***class*** \`Vector3\`"">โ</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 "***method*** \`__init__(self, x: float, y: float, z: float)\`"">โ</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;"> """</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;"> 3็ปดๅ้</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>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
|
1
assets/api_particle_index.md.BnaJlvrB.js
Normal file
1
assets/api_particle_index.md.BnaJlvrB.js
Normal 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};
|
1
assets/api_particle_index.md.BnaJlvrB.lean.js
Normal file
1
assets/api_particle_index.md.BnaJlvrB.lean.js
Normal 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};
|
@ -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};
|
|
@ -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};
|
|
@ -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};
|
|
@ -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};
|
|
1
assets/api_presets_index.md.Cn3tbiU4.js
Normal file
1
assets/api_presets_index.md.Cn3tbiU4.js
Normal 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};
|
1
assets/api_presets_index.md.Cn3tbiU4.lean.js
Normal file
1
assets/api_presets_index.md.Cn3tbiU4.lean.js
Normal 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};
|
@ -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 "mbcp.presets.model"">โ</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 "***class*** \`GeometricModels\`"">โ</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 "***method*** \`sphere(radius: float, density: float)\`"">โ</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 "**ๆจกๅ** \`mbcp.presets.model\`"">โ</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 "***class*** \`GeometricModels\`"">โ</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 "***method*** \`sphere(radius: float, density: float)\`"">โ</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:#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;"> """</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;"> ็ๆ็ไฝไธ็็น้ใ</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;"> 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;"> 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:#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};
|
@ -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};
|
@ -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
1
assets/chunks/@localSearchIndexen.DvmHd6md.js
Normal file
1
assets/chunks/@localSearchIndexen.DvmHd6md.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/chunks/@localSearchIndexja.C_K-gqxF.js
Normal file
1
assets/chunks/@localSearchIndexja.C_K-gqxF.js
Normal file
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
1
assets/chunks/@localSearchIndexroot.CoiP87Fa.js
Normal file
1
assets/chunks/@localSearchIndexroot.CoiP87Fa.js
Normal file
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
@ -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 "mbcp"">โ</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 "**Module** `mbcp`"">โ</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};
|
@ -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};
|
@ -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 "mbcp.mp_math.angle"">โ</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 "***class*** \`Angle\`"">โ</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 "***class*** \`AnyAngle(Angle)\`"">โ</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 "***method*** \`__init__(self, value: float, is_radian: bool = False)\`"">โ</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 "**Module** \`mbcp.mp_math.angle\`"">โ</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 "***class*** \`Angle\`"">โ</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 "***class*** \`AnyAngle(Angle)\`"">โ</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 "***method*** \`__init__(self, value: float, is_radian: bool = False)\`"">โ</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;"> """</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;"> ไปปๆ่งๅบฆใ</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>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
|
@ -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 "mbcp.mp_math.const"">โ</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 "var `PI`"">โ</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 "var `E`"">โ</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 "var `GOLDEN_RATIO`"">โ</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 "var `GAMMA`"">โ</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 "var `EPSILON`"">โ</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 "var `APPROX`"">โ</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 "**Module** `mbcp.mp_math.const`"">โ</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 "var `PI`"">โ</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 "var `E`"">โ</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 "var `GOLDEN_RATIO`"">โ</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 "var `GAMMA`"">โ</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 "var `EPSILON`"">โ</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 "var `APPROX`"">โ</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};
|
@ -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};
|
@ -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 "mbcp.mp_math.equation"">โ</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 "***class*** \`CurveEquation\`"">โ</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 "***method*** \`__init__(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc)\`"">โ</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 "**Module** \`mbcp.mp_math.equation\`"">โ</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 "***class*** \`CurveEquation\`"">โ</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 "***method*** \`__init__(self, x_func: OneVarFunc, y_func: OneVarFunc, z_func: OneVarFunc)\`"">โ</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;"> """</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;"> ๆฒ็บฟๆน็จใ</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>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
|
File diff suppressed because one or more lines are too long
@ -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 "mbcp.mp_math"">โ</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 "**Module** `mbcp.mp_math`"">โ</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};
|
1
assets/en_api_mp_math_index.md.BiDCWhuz.lean.js
Normal file
1
assets/en_api_mp_math_index.md.BiDCWhuz.lean.js
Normal 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};
|
@ -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};
|
|
@ -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 "mbcp.mp_math.line"">โ</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 "***class*** \`Line3\`"">โ</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 "***method*** \`__init__(self, point: Point3, direction: Vector3)\`"">โ</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;">'Point3'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, direction: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'Vector3'</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 "**Module** \`mbcp.mp_math.line\`"">โ</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 "***class*** \`Line3\`"">โ</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 "***method*** \`__init__(self, point: Point3, direction: Vector3)\`"">โ</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;">'Point3'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, direction: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'Vector3'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</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;"> """</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;"> ไธ็ปด็ฉบ้ดไธญ็็ด็บฟใ็ฑไธไธช็นๅไธไธชๆนๅๅ้็กฎๅฎใ</span></span>
|
||||||
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
|
File diff suppressed because one or more lines are too long
@ -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 "mbcp.mp_math.plane"">โ</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 "***class*** \`Plane3\`"">โ</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 "***method*** \`__init__(self, a: float, b: float, c: float, d: float)\`"">โ</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 "**Module** \`mbcp.mp_math.plane\`"">โ</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 "***class*** \`Plane3\`"">โ</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 "***method*** \`__init__(self, a: float, b: float, c: float, d: float)\`"">โ</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;"> """</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;"> ๅนณ้ขๆน็จ๏ผax + by + cz + d = 0</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>
|
<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;"> [\`bool\`](https%3A//docs.python.org/3/library/functions.html#bool): ๆฏๅฆ็ญไปท</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;"> """</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) -> Point3</code> <a class="header-anchor" href="#method-rand-self-other-line3-point3" aria-label="Permalink to "***method*** \`__rand__(self, other: Line3) -> Point3\`"">โ</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;">'Line3'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) -> </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'Point3'</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;">.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) -> Point3</code> <a class="header-anchor" href="#method-rand-self-other-line3-point3" aria-label="Permalink to "***method*** \`__rand__(self, other: Line3) -> Point3\`"">โ</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;">'Line3'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) -> </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'Point3'</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};
|
@ -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};
|
@ -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 "mbcp.mp_math.point"">โ</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 "***class*** \`Point3\`"">โ</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 "***method*** \`__init__(self, x: float, y: float, z: float)\`"">โ</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 "**Module** \`mbcp.mp_math.point\`"">โ</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 "***class*** \`Point3\`"">โ</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 "***method*** \`__init__(self, x: float, y: float, z: float)\`"">โ</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;"> """</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;"> ็ฌๅกๅฐๅๆ ็ณปไธญ็็นใ</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>
|
<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;"> [\`Vector3\`](./vector#class-vector3): ๆฐ็ๅ้</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;"> """</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;"> 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};
|
@ -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};
|
@ -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 "mbcp.mp_math.segment"">โ</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 "***class*** \`Segment3\`"">โ</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 "***method*** \`__init__(self, p1: Point3, p2: Point3)\`"">โ</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;">'Point3'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, p2: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'Point3'</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 "**Module** \`mbcp.mp_math.segment\`"">โ</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 "***class*** \`Segment3\`"">โ</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 "***method*** \`__init__(self, p1: Point3, p2: Point3)\`"">โ</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;">'Point3'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, p2: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'Point3'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</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;"> """</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;"> ไธ็ปด็ฉบ้ดไธญ็็บฟๆฎตใ</span></span>
|
||||||
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</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;"> '้ฟๅบฆ'</span></span>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> '้ฟๅบฆ'</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:#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;"> 'ไธญๅฟ็น'</span></span>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 'ไธญๅฟ็น'</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};
|
@ -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};
|
@ -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 "mbcp.mp_math.utils"">โ</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) -> float</code> <a class="header-anchor" href="#func-clamp-x-float-min-float-max-float-float" aria-label="Permalink to "***func*** \`clamp(x: float, min_: float, max_: float) -> float\`"">โ</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;">) -> </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 "**Module** \`mbcp.mp_math.utils\`"">โ</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) -> float</code> <a class="header-anchor" href="#func-clamp-x-float-min-float-max-float-float" aria-label="Permalink to "***func*** \`clamp(x: float, min_: float, max_: float) -> float\`"">โ</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;">) -> </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;"> """</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;"> ๅบ้ด้ๅฎๅฝๆฐ</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>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
|
@ -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 "mbcp.mp_math.vector"">โ</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 "***class*** \`Vector3\`"">โ</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 "***method*** \`__init__(self, x: float, y: float, z: float)\`"">โ</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 "**Module** \`mbcp.mp_math.vector\`"">โ</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 "***class*** \`Vector3\`"">โ</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 "***method*** \`__init__(self, x: float, y: float, z: float)\`"">โ</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;"> """</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;"> 3็ปดๅ้</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>
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> Args:</span></span>
|
@ -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};
|
|
@ -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};
|
|
1
assets/en_api_particle_index.md.j3_p5KtY.js
Normal file
1
assets/en_api_particle_index.md.j3_p5KtY.js
Normal 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};
|
1
assets/en_api_particle_index.md.j3_p5KtY.lean.js
Normal file
1
assets/en_api_particle_index.md.j3_p5KtY.lean.js
Normal 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};
|
@ -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};
|
|
@ -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};
|
|
1
assets/en_api_presets_index.md.Bj8HQN_s.js
Normal file
1
assets/en_api_presets_index.md.Bj8HQN_s.js
Normal 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};
|
1
assets/en_api_presets_index.md.Bj8HQN_s.lean.js
Normal file
1
assets/en_api_presets_index.md.Bj8HQN_s.lean.js
Normal 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};
|
@ -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 "mbcp.presets.model"">โ</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 "***class*** \`GeometricModels\`"">โ</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 "***method*** \`sphere(radius: float, density: float)\`"">โ</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 "**Module** \`mbcp.presets.model\`"">โ</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 "***class*** \`GeometricModels\`"">โ</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 "***method*** \`sphere(radius: float, density: float)\`"">โ</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:#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;"> """</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;"> ็ๆ็ไฝไธ็็น้ใ</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
Loadingโฆ
Reference in New Issue
Block a user