2024-08-28 20:35:22 +08:00
<!DOCTYPE html>
2024-08-28 22:08:21 +08:00
< html lang = "ja-JP" dir = "ltr" >
2024-08-28 20:35:22 +08:00
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width,initial-scale=1" >
2024-08-31 06:08:36 +08:00
< title > mbcp.mp_math.utils | MBCP ドキュメント< / title >
< meta name = "description" content = "MBCP ライブラリ ドキュメント" >
2024-08-28 20:35:22 +08:00
< meta name = "generator" content = "VitePress v1.3.4" >
2024-09-04 18:58:09 +08:00
< link rel = "preload stylesheet" href = "/assets/style.CoCHU4p1.css" as = "style" >
2024-08-28 20:35:22 +08:00
2024-09-04 18:58:09 +08:00
< script type = "module" src = "/assets/app.B5pcS0RV.js" > < / script >
< link rel = "modulepreload" href = "/assets/chunks/theme.ClwrcgHO.js" >
2024-08-31 07:55:26 +08:00
< link rel = "modulepreload" href = "/assets/chunks/framework.DpC1ZpOZ.js" >
2024-09-03 22:49:39 +08:00
< link rel = "modulepreload" href = "/assets/ja_api_mp_math_utils.md.DhPmcvK-.lean.js" >
2024-08-31 06:08:36 +08:00
< link rel = "icon" type = "image/svg+xml" href = "/mbcp-logo.svg" >
2024-08-31 07:31:49 +08:00
< link rel = "stylesheet" href = "https://fonts.font.im/css?family=Cousine:400,400i,700,700i|Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i" >
2024-08-28 20:35:22 +08:00
< script id = "check-dark-mode" > ( ( ) => { const e = localStorage . getItem ( "vitepress-theme-appearance" ) || "auto" , a = window . matchMedia ( "(prefers-color-scheme: dark)" ) . matches ; ( ! e || e === "auto" ? a : e === "dark" ) && document . documentElement . classList . add ( "dark" ) } ) ( ) ; < / script >
< script id = "check-mac-os" > document . documentElement . classList . toggle ( "mac" , /Mac|iPhone|iPod|iPad/i . test ( navigator . platform ) ) ; < / script >
< / head >
< body >
2024-09-03 22:49:39 +08:00
< div id = "app" > < div class = "Layout" data-v-3b4648ff > <!-- [ --> <!-- ] --> <!-- [ --> < span tabindex = "-1" data-v-e813112c > < / span > < a href = "#VPContent" class = "VPSkipLink visually-hidden" data-v-e813112c > Skip to content < / a > <!-- ] --> <!-- --> < header class = "VPNav" data-v-3b4648ff data-v-e823d444 > < div class = "VPNavBar has-sidebar top" data-v-e823d444 data-v-da0688be > < div class = "wrapper" data-v-da0688be > < div class = "container" data-v-da0688be > < div class = "title" data-v-da0688be > < div class = "VPNavBarTitle has-sidebar" data-v-da0688be data-v-606a7e0f > < a class = "title" href = "/ja/" data-v-606a7e0f > <!-- [ --> <!-- ] --> <!-- [ --> < img class = "VPImage logo" src = "/mbcp-logo.svg" alt data-v-cc63e071 > <!-- ] --> < span data-v-606a7e0f > MBCP ドキュメント< / span > <!-- [ --> <!-- ] --> < / a > < / div > < / div > < div class = "content" data-v-da0688be > < div class = "content-body" data-v-da0688be > <!-- [ --> <!-- ] --> < div class = "VPNavBarSearch search" data-v-da0688be > <!-- [ --> <!-- --> < div id = "local-search" > < button type = "button" class = "DocSearch DocSearch-Button" aria-label = "検索を開く" > < span class = "DocSearch-Button-Container" > < span class = "vp-icon DocSearch-Search-Icon" > < / span > < span class = "DocSearch-Button-Placeholder" > 検索< / span > < / span > < span class = "DocSearch-Button-Keys" > < kbd class = "DocSearch-Button-Key" > < / kbd > < kbd class = "DocSearch-Button-Key" > K< / kbd > < / span > < / button > < / div > <!-- ] --> < / div > < nav aria-labelledby = "main-nav-aria-label" class = "VPNavBarMenu menu" data-v-da0688be data-v-bf53b681 > < span id = "main-nav-aria-label" class = "visually-hidden" data-v-bf53b681 > Main Navigation < / span > <!-- [ --> <!-- [ --> < a class = "VPLink link VPNavBarMenuLink" href = "/ja/guide/" tabindex = "0" data-v-bf53b681 data-v-9a0da802 > <!-- [ --> < span data-v-9a0da802 > スタート< / span > <!-- ] --> < / a > <!-- ] --> <!-- [ --> < a class = "VPLink link VPNavBarMenuLink" href = "/ja/refer.html" tabindex = "0" data-v-bf53b681 data-v-9a0da802 > <!-- [ --> < span data-v-9a0da802 > リファレンス< / span > <!-- ] --> < / a > <!-- ] --> <!-- [ --> < a class = "VPLink link VPNavBarMenuLink" href = "/ja/api/" tabindex = "0" data-v-bf53b681 data-v-9a0da802 > <!-- [ --> < span data-v-9a0da802 > APIリファレンス< / span > <!-- ] --> < / a > <!-- ] --> <!-- [ --> < a class = "VPLink link VPNavBarMenuLink" href = "/ja/demo/" tabindex = "0" data-v-bf53b681 data-v-9a0da802 > <!-- [ --> < span data-v-9a0da802 > インスタンス< / span > <!-- ] --> < / a > <!-- ] --> <!-- ] --> < / nav > < div class = "VPFlyout VPNavBarTranslations translations" data-v-da0688be data-v-912817b1 data-v-00660109 > < button type = "button" class = "button" aria-haspopup = "true" aria-expanded = "false" aria-label = "Change language" data-v-00660109 > < span class = "text" data-v-00660109 > < span class = "vpi-languages option-icon" data-v-00660109 > < / span > <!-- --> < span class = "vpi-chevron-down text-icon" data-v-00660109 > < / span > < / span > < / button > < div class = "menu" data-v-00660109 > < div class = "VPMenu" data-v-00660109 data-v-809b8af7 > <!-- --> <!-- [ --> <!-- [ --> < div class = "items" data-v-912817b1 > < p class = "title" data-v-912817b1 > 日本語< / p > <!-- [ --> < div class = "VPMenuLink" data-v-912817b1 data-v-25a54821 > < a class = "VPLink link" href = "/api/mp_math/utils.html" data-v-25a54821 > <!-- [ --> 简体中文<!-- ] --> < / a > < / div > < div class = "VPMenuLink" data-v-912817b1 data-v-25a54821 > < a class = "VPLink link" href = "/en/api/mp_math/utils.html" data-v-25a54821 > <!-- [ --> English<!-- ] --> < / a > < / div > < div class = "VPMenuLink" data-v-912817b1 data-v-25a54821 > < a class = "VPLink link" href = "/zht/api/mp_math/utils.html" data-v-25a54821 > <!-- [ --> 繁體中文<!-- ] --> < / a > < / div > <!-- ] --> < / div > <!-- ] --> <!-- ] --> < / div > < / div > < / div > < div class = "VPNavBarAppearance appearance" data-v-da0688be data-v-864d2abc > < button class = "VPSwitch VPSwitchAppearance" type = "button" role = "switch" title = "Switch to dark theme" aria-checked = "false" data-v-864d2abc data-v-3125216b data-v-846fe538 > < span class = "check" data-v-846fe538 > < span class = "icon" data-v-846fe538 > <!-- [ --> < span class = "vpi-sun sun" data-v-3125216b > < / span > < span class = "vpi-moon moon" data-v-3125216b > < / span > <!-- ] --> < / span > < / span > < / button > < / div > < div class = "VPSocialLinks VPNavBarSocialLinks social-links" data-v-da0688be data-v-2c606308 data-v-100434c4 > <!-- [ --> < a class = "VPSocialLink no-icon" href = "https://github.com/snowyk
2024-08-28 20:35:22 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > " " " < / span > < / span >
2024-08-29 13:25:00 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > 区间限定函数< / span > < / span >
2024-08-28 20:35:22 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > Args:< / span > < / span >
2024-08-31 09:34:37 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > x ([`float`](https://docs.python.org/3/library/functions.html#float)): 值< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > min_ (`float`): 最小值< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > max_ (`float`): 最大值< / span > < / span >
2024-08-28 20:35:22 +08:00
< span class = "line" > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > Returns:< / span > < / span >
2024-08-31 09:34:37 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > `float`: 限定在区间内的值< / span > < / span >
2024-08-28 20:35:22 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > " " " < / span > < / span >
2024-09-03 22:49:39 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > return< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > max< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > min< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (x, max_), min_)< / span > < / span > < / code > < / pre > < / div > < / details > < h3 id = "class-approx" tabindex = "-1" > < em > < strong > class< / strong > < / em > < code > Approx< / code > < a class = "header-anchor" href = "#class-approx" aria-label = "Permalink to "***class*** `Approx`"" > < / a > < / h3 > < h4 id = "method-init-self-value-realnumber" tabindex = "-1" > < em > < strong > method< / strong > < / em > < code > __init__(self, value: RealNumber)< / code > < a class = "header-anchor" href = "#method-init-self-value-realnumber" aria-label = "Permalink to "***method*** `__init__(self, value: RealNumber)`"" > < / a > < / h4 > < p > < strong > 説明< / strong > : 用于近似比较对象< / p > < p > < strong > 引数< / strong > :< / p > < blockquote > < ul > < li > value (< a href = "./mp_math_typing.html#realnumber" > < code > RealNumber< / code > < / a > ): 实数< / li > < / ul > < / blockquote > < details > < summary > < b > ソースコード< / b > または < a href = "https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/utils.py#L36" 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: RealNumber):< / span > < / span >
2024-08-31 09:34:37 +08:00
< 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;" > value ([`RealNumber`](./mp_math_typing#realnumber)): 实数< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > " " " < / span > < / span >
2024-09-03 22:49:39 +08:00
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .value < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > value< / span > < / span > < / code > < / pre > < / div > < / details > < h4 id = "method-eq-self-other" tabindex = "-1" > < em > < strong > method< / strong > < / em > < code > __eq__(self, other)< / code > < a class = "header-anchor" href = "#method-eq-self-other" aria-label = "Permalink to "***method*** `__eq__(self, other)`"" > < / a > < / h4 > < details > < summary > < b > ソースコード< / b > または < a href = "https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/utils.py#L44" 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;" > __eq__< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self, other):< / span > < / span >
2024-08-30 13:46:30 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > if< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > isinstance< / 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;" > .value, (< / 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;" > int< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > )):< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > if< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > isinstance< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (other, (< / 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;" > int< / 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;" > abs< / 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;" > .value < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > -< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > other) < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > < < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > APPROX< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > else< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > :< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .raise_type_error(other)< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > elif< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > isinstance< / 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;" > .value, Vector3):< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > if< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > isinstance< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (other, (Vector3, Point3, Plane3, Line3)):< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > return< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > all< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > ([approx(< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .value.x, other.x), approx(< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .value.y, other.y), approx(< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .value.z, other.z)])< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > else< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > :< / span > < / span >
2024-09-03 22:49:39 +08:00
< span class = "line" > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .raise_type_error(other)< / span > < / span > < / code > < / pre > < / div > < / details > < h4 id = "method-raise-type-error-self-other" tabindex = "-1" > < em > < strong > method< / strong > < / em > < code > raise_type_error(self, other)< / code > < a class = "header-anchor" href = "#method-raise-type-error-self-other" aria-label = "Permalink to "***method*** `raise_type_error(self, other)`"" > < / a > < / h4 > < details > < summary > < b > ソースコード< / b > または < a href = "https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/utils.py#L56" 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;" > raise_type_error< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self, other):< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > raise< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > TypeError< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > f< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' Unsupported type: < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > {type< / 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;" > .value)< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > and < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > {type< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (other)< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' < / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > )< / span > < / span > < / code > < / pre > < / div > < / details > < h4 id = "method-ne-self-other" tabindex = "-1" > < em > < strong > method< / strong > < / em > < code > __ne__(self, other)< / code > < a class = "header-anchor" href = "#method-ne-self-other" aria-label = "Permalink to "***method*** `__ne__(self, other)`"" > < / a > < / h4 > < details > < summary > < b > ソースコード< / b > または < a href = "https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/utils.py#L59" 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;" > __ne__< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self, other):< / span > < / span >
2024-09-01 00:02:40 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > return< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > not< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > __eq__< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (other)< / span > < / span > < / code > < / pre > < / div > < / details > < h3 id = "func-approx-x-float-y-float-0-0-epsilon-float-approx-bool" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > approx(x: float, y: float = 0.0, epsilon: float = APPROX) -> bool< / code > < a class = "header-anchor" href = "#func-approx-x-float-y-float-0-0-epsilon-float-approx-bool" aria-label = "Permalink to "***func*** `approx(x: float, y: float = 0.0, epsilon: float = APPROX) -> bool`"" > < / a > < / h3 > < p > < strong > 説明< / strong > : 判断两个数是否近似相等。或包装一个实数, 用于判断是否近似于0。< / 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 > ): 数1< / li > < li > y (< code > float< / code > ): 数2< / li > < li > epsilon (< code > float< / code > ): 误差< / li > < / ul > < / blockquote > < p > < strong > 戻り値< / strong > : < a href = "https://docs.python.org/3/library/functions.html#bool" target = "_blank" rel = "noreferrer" > < code > bool< / code > < / a > : 是否近似相等< / p > < details > < summary > < b > ソースコード< / b > または < a href = "https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/utils.py#L63" 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;" > approx< / 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;" > , y: < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > float< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > 0.0< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > , epsilon: < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > float< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > APPROX< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > ) -> < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > bool< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > :< / span > < / span >
2024-08-28 20:35:22 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > " " " < / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > 判断两个数是否近似相等。或包装一个实数, 用于判断是否近似于0。< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > Args:< / span > < / span >
2024-08-31 09:34:37 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > x ([`float`](https://docs.python.org/3/library/functions.html#float)): 数1< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > y (`float`): 数2< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > epsilon (`float`): 误差< / span > < / span >
2024-08-28 20:35:22 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > Returns:< / span > < / span >
2024-08-31 09:34:37 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > [`bool`](https://docs.python.org/3/library/functions.html#bool): 是否近似相等< / span > < / span >
2024-08-28 20:35:22 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > " " " < / span > < / span >
2024-09-01 00:02:40 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > return< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > abs< / 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;" > y) < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > < < / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > epsilon< / span > < / span > < / code > < / pre > < / div > < / details > < h3 id = "func-sign-x-float-only-neg-bool-false-str" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > sign(x: float, only_neg: bool = False) -> str< / code > < a class = "header-anchor" href = "#func-sign-x-float-only-neg-bool-false-str" aria-label = "Permalink to "***func*** `sign(x: float, only_neg: bool = False) -> str`"" > < / 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 > only_neg (< a href = "https://docs.python.org/3/library/functions.html#bool" target = "_blank" rel = "noreferrer" > < code > bool< / code > < / a > ): 是否只返回负数的符号< / li > < / ul > < / blockquote > < p > < strong > 戻り値< / strong > : < a href = "https://docs.python.org/3/library/functions.html#str" target = "_blank" rel = "noreferrer" > < code > str< / code > < / a > : 符号 + - " " < / p > < details > < summary > < b > ソースコード< / b > または < a href = "https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/utils.py#L76" 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;" > sign< / 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;" > , only_neg: < / 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 style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > str< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > :< / span > < / span >
2024-08-28 20:35:22 +08:00
< 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 >
2024-08-31 09:34:37 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > x ([`float`](https://docs.python.org/3/library/functions.html#float)): 数< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > only_neg ([`bool`](https://docs.python.org/3/library/functions.html#bool)): 是否只返回负数的符号< / span > < / span >
2024-08-28 20:35:22 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > Returns:< / span > < / span >
2024-08-31 09:34:37 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > [`str`](https://docs.python.org/3/library/functions.html#str): 符号 + - " " < / span > < / span >
2024-08-28 20:35:22 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > " " " < / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > if< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > x < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > > < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > 0< / 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:#032F62;--shiki-dark:#9ECBFF;" > ' +' < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > if< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > not< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > only_neg < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > else< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' ' < / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > elif< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > x < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > < < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > 0< / 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:#032F62;--shiki-dark:#9ECBFF;" > ' -' < / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > else< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > :< / span > < / span >
2024-09-01 00:02:40 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > return< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' ' < / span > < / span > < / code > < / pre > < / div > < / details > < h3 id = "func-sign-format-x-float-only-neg-bool-false-str" tabindex = "-1" > < em > < strong > func< / strong > < / em > < code > sign_format(x: float, only_neg: bool = False) -> str< / code > < a class = "header-anchor" href = "#func-sign-format-x-float-only-neg-bool-false-str" aria-label = "Permalink to "***func*** `sign_format(x: float, only_neg: bool = False) -> str`"" > < / a > < / h3 > < p > < strong > 説明< / strong > : 格式化符号数 -1 -> -1 1 -> +1 0 -> " " < / 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 > only_neg (< a href = "https://docs.python.org/3/library/functions.html#bool" target = "_blank" rel = "noreferrer" > < code > bool< / code > < / a > ): 是否只返回负数的符号< / li > < / ul > < / blockquote > < p > < strong > 戻り値< / strong > : < a href = "https://docs.python.org/3/library/functions.html#str" target = "_blank" rel = "noreferrer" > < code > str< / code > < / a > : 符号 + - " " < / p > < details > < summary > < b > ソースコード< / b > または < a href = "https://github.com/snowykami/mbcp/tree/main/mbcp/mp_math/utils.py#L92" 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;" > sign_format< / 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;" > , only_neg: < / 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 style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > str< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > :< / span > < / span >
2024-08-28 20:35:22 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > " " " 格式化符号数< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > -1 -> -1< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > 1 -> +1< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > 0 -> " " < / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > Args:< / span > < / span >
2024-08-31 09:34:37 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > x ([`float`](https://docs.python.org/3/library/functions.html#float)): 数< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > only_neg ([`bool`](https://docs.python.org/3/library/functions.html#bool)): 是否只返回负数的符号< / span > < / span >
2024-08-28 20:35:22 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > Returns:< / span > < / span >
2024-08-31 09:34:37 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > [`str`](https://docs.python.org/3/library/functions.html#str): 符号 + - " " < / span > < / span >
2024-08-28 20:35:22 +08:00
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > " " " < / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > if< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > x < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > > < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > 0< / 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:#D73A49;--shiki-dark:#F97583;" > f< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' +< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > {< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > x< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > if< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > not< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > only_neg < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > else< / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > f< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > {< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > x< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' < / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > elif< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > x < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > < < / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > 0< / 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:#D73A49;--shiki-dark:#F97583;" > f< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' -< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > {abs< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (x)< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' < / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > else< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > :< / span > < / span >
2024-09-03 22:49:39 +08:00
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > return< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' ' < / span > < / span > < / code > < / pre > < / div > < / details > < / div > < / div > < / main > < footer class = "VPDocFooter" data-v-01c90815 data-v-28deee4a > <!-- [ --> <!-- ] --> < div class = "edit-info" data-v-28deee4a > < div class = "edit-link" data-v-28deee4a > < a class = "VPLink link vp-external-link-icon no-icon edit-link-button" href = "https://github.com/snowykami/mbcp/tree/main/mbcp//mp_math/utils.py" target = "_blank" rel = "noreferrer" data-v-28deee4a > <!-- [ --> < span class = "vpi-square-pen edit-link-icon" data-v-28deee4a > < / span > このページをGitHubで編集する<!-- ] --> < / a > < / div > <!-- --> < / div > < nav class = "prev-next" aria-labelledby = "doc-footer-aria-label" data-v-28deee4a > < span class = "visually-hidden" id = "doc-footer-aria-label" data-v-28deee4a > Pager< / span > < div class = "pager" data-v-28deee4a > < a class = "VPLink link pager-link prev" href = "/ja/api/mp_math/segment.html" data-v-28deee4a > <!-- [ --> < span class = "desc" data-v-28deee4a > 前のページ< / span > < span class = "title" data-v-28deee4a > mbcp.mp_math.segment< / span > <!-- ] --> < / a > < / div > < div class = "pager" data-v-28deee4a > < a class = "VPLink link pager-link next" href = "/ja/api/mp_math/vector.html" data-v-28deee4a > <!-- [ --> < span class = "desc" data-v-28deee4a > 次のページ< / span > < span class = "title" data-v-28deee4a > mbcp.mp_math.vector< / span > <!-- ] --> < / a > < / div > < / nav > < / footer > <!-- [ --> <!-- ] --> < / div > < / div > < / div > <!-- [ --> <!-- ] --> < / div > < / div > < footer class = "VPFooter has-sidebar" data-v-3b4648ff data-v-d69bcf5d > < div class = "container" data-v-d69bcf5d > < p class = "message" data-v-d69bcf5d > < a href = "https://vitepress.dev/" > VitePress< / a > で構築されたドキュメント | < a href = "https://github.com/LiteyukiStudio/litedoc" > litedoc< / a > によって生成されたAPIリファレンス< / p > < p class = "copyright" data-v-d69bcf5d > Copyright (C) 2020-2024 SnowyKami. All Rights Reserved< / p > < / div > < / footer > <!-- [ --> <!-- ] --> < / div > < / div >
< script > w i n d o w . _ _ V P _ H A S H _ M A P _ _ = J S O N . p a r s e ( " { \ " a p i _ i n d e x . m d \ " : \ " Y S - z q W w M \ " , \ " a p i _ m p _ m a t h _ a n g l e . m d \ " : \ " C T h Q B 5 n q \ " , \ " a p i _ m p _ m a t h _ c o n s t . m d \ " : \ " D q j Q Q 6 Y m \ " , \ " a p i _ m p _ m a t h _ e q u a t i o n . m d \ " : \ " C 1 Y M G s I R \ " , \ " a p i _ m p _ m a t h _ f u n c t i o n . m d \ " : \ " C 0 P _ - k o l \ " , \ " a p i _ m p _ m a t h _ i n d e x . m d \ " : \ " y E j 9 p z O D \ " , \ " a p i _ m p _ m a t h _ l i n e . m d \ " : \ " O k m n 0 B T W \ " , \ " a p i _ m p _ m a t h _ m p _ m a t h _ t y p i n g . m d \ " : \ " b d i O S v F y \ " , \ " a p i _ m p _ m a t h _ p l a n e . m d \ " : \ " D l - F d X x 3 \ " , \ " a p i _ m p _ m a t h _ p o i n t . m d \ " : \ " x U 6 H j e L 2 \ " , \ " a p i _ m p _ m a t h _ s e g m e n t . m d \ " : \ " B q l o N j d D \ " , \ " a p i _ m p _ m a t h _ u t i l s . m d \ " : \ " C G B Z j r 3 t \ " , \ " a p i _ m p _ m a t h _ v e c t o r . m d \ " : \ " B 4 4 3 f t A V \ " , \ " a p i _ p a r t i c l e _ i n d e x . m d \ " : \ " V x g s H i Z a \ " , \ " a p i _ p r e s e t s _ i n d e x . m d \ " : \ " B E Z B x 6 G j \ " , \ " a p i _ p r e s e t s _ m o d e l _ i n d e x . m d \ " : \ " C z r Z X 1 L i \ " , \ " d e m o _ b e s t - p r a c t i c e . m d \ " : \ " C m Y j f r x d \ " , \ " d e m o _ i n d e x . m d \ " : \ " C V A d l a F I \ " , \ " e n _ a p i _ i n d e x . m d \ " : \ " B r J l a d - k \ " , \ " e n _ a p i _ m p _ m a t h _ a n g l e . m d \ " : \ " B v z e T d t j \ " , \ " e n _ a p i _ m p _ m a t h _ c o n s t . m d \ " : \ " C r U t _ 3 F V \ " , \ " e n _ a p i _ m p _ m a t h _ e q u a t i o n . m d \ " : \ " C H B t H 4 v 6 \ " , \ " e n _ a p i _ m p _ m a t h _ f u n c t i o n . m d \ " : \ " D 6 8 b T y e d \ " , \ " e n _ a p i _ m p _ m a t h _ i n d e x . m d \ " : \ " D 3 3 1 A s 7 i \ " , \ " e n _ a p i _ m p _ m a t h _ l i n e . m d \ " : \ " B 6 9 k H o P c \ " , \ " e n _ a p i _ m p _ m a t h _ m p _ m a t h _ t y p i n g . m d \ " : \ " x R G J G U M m \ " , \ " e n _ a p i _ m p _ m a t h _ p l a n e . m d \ " : \ " B d K g R u m w \ " , \ " e n _ a p i _ m p _ m a t h _ p o i n t . m d \ " : \ " B e T 2 o q I N \ " , \ " e n _ a p i _ m p _ m a t h _ s e g m e n t . m d \ " : \ " D b F v I n H k \ " , \ " e n _ a p i _ m p _ m a t h _ u t i l s . m d \ " : \ " C Y q 8 h n c D \ " , \ " e n _ a p i _ m p _ m a t h _ v e c t o r . m d \ " : \ " C P G k Z z w r \ " , \ " e n _ a p i _ p a r t i c l e _ i n d e x . m d \ " : \ " Z K B y d _ x 0 \ " , \ " e n _ a p i _ p r e s e t s _ i n d e x . m d \ " : \ " B h o Z y G S V \ " , \ " e n _ a p i _ p r e s e t s _ m o d e l _ i n d e x . m d \ " : \ " B M 4 z z W d 9 \ " , \ " e n _ d e m o _ b e s t - p r a c t i c e . m d \ " : \ " C m t Y 1 0 5 n \ " , \ " e n _ g u i d e _ i n d e x . m d \ " : \ " C 3 k I 8 f 8 A \ " , \ " e n _ i n d e x . m d \ " : \ " C c - N t 9 O t \ " , \ " e n _ r e f e r _ i n d e x . m d \ " : \ " C q 6 G W i 0 V \ " , \ " g u i d e _ i n d e x . m d \ " : \ " C J O q v l S E \ " , \ " i n d e x . m d \ " : \ " W V p b C 1 C 1 \ " , \ " j a _ a p i _ i n d e x . m d \ " : \ " 6 u 5 f 7 W 7 q \ " , \ " j a _ a p i _ m p _ m a t h _ a n g l e . m d \ " : \ " C b T F N F p P \ " , \ " j a _ a p i _ m p _ m a t h _ c o n s t . m d \ " : \ " H r V L d L V W \ " , \ " j a _ a p i _ m p _ m a t h _ e q u a t i o n . m d \ " : \ " B R _ c j Y x P \ " , \ " j a _ a p i _ m p _ m a t h _ f u n c t i o n . m d \ " : \ " C e N P n p r i \ " , \ " j a _ a p i _ m p _ m a t h _ i n d e x . m d \ " : \ " B V Y Y B c g X \ " , \ " j a _ a p i _ m p _ m a t h _ l i n e . m d \ " : \ " C m V m q 6 P C \ " , \ " j a _ a p i _ m p _ m a t h _ m p _ m a t h _ t y p i n g . m d \ " : \ " B n S H E E F C \ " , \ " j a _ a p i _ m p _ m a t h _ p l a n e . m d \ " : \ " D 7 v 3 q _ U 8 \ " , \ " j a _ a p i _ m p _ m a t h _ p o i n t . m d \ " : \ " B q C 8 J g j G \ " , \ " j a _ a p i _ m p _ m a t h _ s e g m e n t . m d \ " : \ " v i 1 F H 0 - - \ " , \ " j a _ a p i _ m p _ m a t h _ u t i l s . m d \ " : \ " D h P m c v K - \ " , \ " j a _ a p i _ m p _ m a t h _ v e c t o r . m d \ " : \ " B 7 o D y - S U \ " , \ " j a _ a p i _ p a r t i c l e _ i n d e x . m d \ " : \ " i g h e y 3 J D \ " , \ " j a _ a p i _ p r e s e t s _ i n d e x . m d \ " : \ " B o w 2 2 H N O \ " , \ " j a _ a p i _ p r e s e t s _ m o d e l _ i n d e x . m d \ " : \ " C - u C q j X i \ " , \ " j a _ d e m o _ b e s t - p r a c t i c e . m d \ " : \ " C B H i F 6 e c \ " , \ " j a _ g u i d e _ i n d e x . m d \ " : \ " w 1 T f 2 A d m \ " , \ " j a _ i n d e x . m d \ " : \ " B v j V 8 R I J \ " , \ " j a _ r e f e r _ i n d e x . m d \ " : \ " D a m U s c s 8 \ " , \ " r e f e r _ f u n c t i o n _ c u r r y . m d \ " : \ " D _ o q R D d 3 \ " , \ " r e f e r _ f u n c t i o n _ f u n c t i o n . m d \ " : \ " B i _ 8 2 l I J \ " , \ " r e f e r _ i n d e x . m d \ " : \ " y F Z W 0 k I 4 \ " , \ " z h t _ a p i _ i n d e x . m d \ " : \ " D M j E 1 x B r \ " , \ " z h t _ a p i _ m p _ m a t h _ a n g l e . m d \ " : \ " D 6 i - - 7 z d \ " , \ " z h t _ a p i _ m p _ m a t h _ c o n s t . m d \ " : \ " D I 0 x A y W X \ " , \ " z h t _ a p i _ m p _ m a t h _ e q u a t i o n . m d \ " : \ " B 3 r t 0 P g w \ " , \ " z h t _ a p i _ m p _ m a t h _ f u n c t i o n . m d \ " : \ " C f 9 u t a T V \ " , \ " z h t _ a p i _ m p _ m a t h _ i n d e x . m d \ " : \ " D b g I 3 v D 1 \ " , \ " z h t _ a p i _ m p _ m a t h _ l i n e . m d \ " : \ " - w t K M T M J \ " , \ " z h t _ a p i _ m p _ m a t h _ m p _ m a t h _ t y p i n g . m d \ " : \ " B b O e R s - n \ " , \ " z h t _ a p i _ m p _ m a t h _ p l a n e . m d \ " : \ " o _ V r o q h a \ " , \ " z h t _ a p i _ m p _ m a t h _ p o i n t . m d \ " : \ " C N w x P Y y R \ " , \ " z h t _ a p i _ m p _ m a t h _ s e g m e n t . m d \ " : \ " D r 2 1 f 1 4 B \ " , \ " z h t _ a p i _ m p _ m a t h _ u t i l s . m d \ " : \ " B 5 7 z 4 I w N \ " , \ " z h t _ a p i _ m p _ m a t h _ v e c t o r . m d \ " : \ " D C G 5 C r a B \ " , \ " z h t _ a p i _ p a r t i c l e _ i n d e x . m d \ " : \ " D j Z A B i v I \ " , \ " z h t _ a p i _ p r e s e t s _ i n d e x . m d \ " : \ " B l 7 t n V S 9 \ " , \ " z h t _ a p i _ p r e s e t s _ m o d e l _ i n d e x . m d \ " : \ " B Q a n u b Q 0 \ " , \ " z h t _ d e m o _ b e s t - p r a c t i c e . m d \ " : \ " C P N b D _ L g \ " , \ " z h t _ g u i d e _ i n d e x . m d \ " : \ " B N n M V i C 8 \ " , \ " z h t _ i n d e x . m d \ " : \ " f k O Y k Z Z e \ " , \ " z h t _ r e f e r _ i n d e x . m d \ " : \ " B 7 C Q S 2 U W \ " } " ) ; f u n c t i o n d e s e r i a l i z e F u n c t i o n s ( r ) { r e t u r n A r r a y . i s A r r a y ( r ) ? r . m a p ( d e s e r i a l i z e F u n c t i o n s ) : t y p e o f r = = " o b j e c t " & & r ! = = n u l l ? O b j e c t . k e y s ( r ) . r e d u c e ( ( t , n ) = > ( t [ n ] = d e s e r i a l i z e F u n c t i o n s ( r [ n ] ) , t ) , { } ) : t y p e o f r = = " s t r i n g " & & r . s t a r t s W i t h ( " _ v p - f n _ " ) ? n e w F u n c t i o n ( ` r e t u r n $ { r . s l i c e ( 7 ) } ` ) ( ) : r } ; w i n d o w . _ _ V P _ S I T E _ D A T A _ _ = d e s e r i a l i z e F u n c t i o n s ( J S O N . p a r s e ( " { \ " l a n g \ " : \ " e n - U S \ " , \ " d i r \ " : \ " l t r \ " , \ " t i t l e \ " : \ " V i t e P r e s s \ " , \ " d e s c r i p t i o n \ " : \ " A V i t e P r e s s s i t e \ " , \ " b a s e \ " : \ " / \ " , \ " h e a d \ " : [ ] , \ " r o u t e r \ " : { \ " p r e f e t c h L i n k s \ " : t r u e } , \ " a p p e a r a n c e \ " : t r u e , \ " t h e m e C o n f i g \ " : { \ " l o g o \ " : \ " / m b c p - l o g o . s v g \ " , \ " s i d e b a r \ " : { \ " / a p i / \ " : { \ " b a s e \ " : \ " / a p i / \ " , \ " i t e m s \ " : [ { \ " t e x t \ " : \ " M B C P \ " , \ " i t e m s \ " : [ { \ " t e x t \ " : \ " m p _ m a t h \ " , \ " i t e m s \ " : [ { \ " t e x t \ " : \ " m b c p . m p _ m a t h . a n g l e \ " , \ " l i n k \ " : \ " m p _ m
2024-08-28 20:35:22 +08:00
< / body >
< / html >