2024-08-28 12:03:02 +08:00
<!DOCTYPE html>
< html lang = "zh-Hans" dir = "ltr" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width,initial-scale=1" >
2024-08-28 20:35:22 +08:00
< title > mbcp.mp_math.point | MBCP docs< / title >
2024-08-28 12:03:02 +08:00
< meta name = "description" content = "一个用于Minecraft粒子计算和生成的库" >
< meta name = "generator" content = "VitePress v1.3.4" >
< link rel = "preload stylesheet" href = "/assets/style.Bb0QBJmh.css" as = "style" >
< script type = "module" src = "/assets/app.l1Ut0uce.js" > < / script >
< link rel = "preload" href = "/assets/inter-roman-latin.Di8DUHzh.woff2" as = "font" type = "font/woff2" crossorigin = "" >
< link rel = "modulepreload" href = "/assets/chunks/theme.BPuUWxkA.js" >
< link rel = "modulepreload" href = "/assets/chunks/framework.BV61Qrc0.js" >
2024-08-28 20:35:22 +08:00
< link rel = "modulepreload" href = "/assets/api_mp_math_point.md.BhIb1HeT.lean.js" >
2024-08-28 12:03:02 +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-08-28 20:35:22 +08:00
< div id = "app" > < div class = "Layout" data-v-8e016544 > <!-- [ --> <!-- ] --> <!-- [ --> < span tabindex = "-1" data-v-efdf7a7d > < / span > < a href = "#VPContent" class = "VPSkipLink visually-hidden" data-v-efdf7a7d > Skip to content < / a > <!-- ] --> <!-- --> < header class = "VPNav" data-v-8e016544 data-v-0c3b3583 > < div class = "VPNavBar has-sidebar top" data-v-0c3b3583 data-v-af8d762d > < div class = "wrapper" data-v-af8d762d > < div class = "container" data-v-af8d762d > < div class = "title" data-v-af8d762d > < div class = "VPNavBarTitle has-sidebar" data-v-af8d762d data-v-73c882b0 > < a class = "title" href = "/" data-v-73c882b0 > <!-- [ --> <!-- ] --> <!-- --> < span data-v-73c882b0 > MBCP docs< / span > <!-- [ --> <!-- ] --> < / a > < / div > < / div > < div class = "content" data-v-af8d762d > < div class = "content-body" data-v-af8d762d > <!-- [ --> <!-- ] --> < div class = "VPNavBarSearch search" data-v-af8d762d > <!-- --> < / div > < nav aria-labelledby = "main-nav-aria-label" class = "VPNavBarMenu menu" data-v-af8d762d data-v-ae469694 > < span id = "main-nav-aria-label" class = "visually-hidden" data-v-ae469694 > Main Navigation < / span > <!-- [ --> <!-- [ --> < a class = "VPLink link VPNavBarMenuLink" href = "/guide.html" tabindex = "0" data-v-ae469694 data-v-4ca2fdac > <!-- [ --> < span data-v-4ca2fdac > 快速开始< / span > <!-- ] --> < / a > <!-- ] --> <!-- [ --> < a class = "VPLink link VPNavBarMenuLink" href = "/api/" tabindex = "0" data-v-ae469694 data-v-4ca2fdac > <!-- [ --> < span data-v-4ca2fdac > API文档< / span > <!-- ] --> < / a > <!-- ] --> <!-- [ --> < a class = "VPLink link VPNavBarMenuLink" href = "/demo/" tabindex = "0" data-v-ae469694 data-v-4ca2fdac > <!-- [ --> < span data-v-4ca2fdac > 实例< / span > <!-- ] --> < / a > <!-- ] --> <!-- ] --> < / nav > < div class = "VPFlyout VPNavBarTranslations translations" data-v-af8d762d data-v-ba521018 data-v-6d56b0ed > < button type = "button" class = "button" aria-haspopup = "true" aria-expanded = "false" aria-label = "Change language" data-v-6d56b0ed > < span class = "text" data-v-6d56b0ed > < span class = "vpi-languages option-icon" data-v-6d56b0ed > < / span > <!-- --> < span class = "vpi-chevron-down text-icon" data-v-6d56b0ed > < / span > < / span > < / button > < div class = "menu" data-v-6d56b0ed > < div class = "VPMenu" data-v-6d56b0ed data-v-36a6a4be > <!-- --> <!-- [ --> <!-- [ --> < div class = "items" data-v-ba521018 > < p class = "title" data-v-ba521018 > 简体中文< / p > <!-- [ --> < div class = "VPMenuLink" data-v-ba521018 data-v-a9b5eada > < a class = "VPLink link" href = "/en/api/mp_math/point.html" data-v-a9b5eada > <!-- [ --> English<!-- ] --> < / a > < / div > <!-- ] --> < / div > <!-- ] --> <!-- ] --> < / div > < / div > < / div > < div class = "VPNavBarAppearance appearance" data-v-af8d762d data-v-fd625bab > < button class = "VPSwitch VPSwitchAppearance" type = "button" role = "switch" title = "Switch to dark theme" aria-checked = "false" data-v-fd625bab data-v-38c704f2 data-v-793caf05 > < span class = "check" data-v-793caf05 > < span class = "icon" data-v-793caf05 > <!-- [ --> < span class = "vpi-sun sun" data-v-38c704f2 > < / span > < span class = "vpi-moon moon" data-v-38c704f2 > < / span > <!-- ] --> < / span > < / span > < / button > < / div > < div class = "VPSocialLinks VPNavBarSocialLinks social-links" data-v-af8d762d data-v-9b3d2141 data-v-0ada25a4 > <!-- [ --> < a class = "VPSocialLink no-icon" href = "https://github.com/snowykami/mbcp" aria-label = "github" target = "_blank" rel = "noopener" data-v-0ada25a4 data-v-36d54f99 > < span class = "vpi-social-github" / > < / a > <!-- ] --> < / div > < div class = "VPFlyout VPNavBarExtra extra" data-v-af8d762d data-v-8ac0e455 data-v-6d56b0ed > < button type = "button" class = "button" aria-haspopup = "true" aria-expanded = "false" aria-label = "extra navigation" data-v-6d56b0ed > < span class = "vpi-more-horizontal icon" data-v-6d56b0ed > < / span > < / button > < div class = "menu" data-v-6d56b0ed > < div class = "VPMenu" data-v-6d56b0ed data-v-36a6a4be > <!-- --> <!-- [ --> <!-- [ --> < div class = "group translations" data-v-8ac0e455 > < p class = "trans-title" data-v-8ac0e455 > 简体中文< / p > <!-- [ --> < div class = "VPMenuLink" data-v-8ac0e455 data-v-a9b5eada > < a class = "VPLink link" href = "/en/api/mp_math/point.html" data-v-a9b5eada > <!-- [ --> English<!-- ] --> < / a > < / div > <!-- ] --> < / div > < div class = "group" data-v-8ac0e455 > < div class = "item appearance" data-v-8ac0e455 > < p class = "label" data-v-8ac0e455 > Appearance< / p > < div class = "appearance-action" data-v-8ac0e455 > < button class = "VPSwitch VPSwitchAppearance" type = "button"
2024-08-28 12:03:02 +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;" > x: x 坐标< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > y: y 坐标< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > z: z 坐标< / 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;" > .x < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > =< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > x< / span > < / span >
< span class = "line" > < 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;" > y< / span > < / span >
2024-08-28 20:35:22 +08:00
< span class = "line" > < 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;" > z< / span > < / span > < / code > < / pre > < / div > < / details > < ul > < li > < h4 id = "def-approx-self-other-point3-epsilon-float-approx" tabindex = "-1" > < em > def< / em > < code > approx(self, other: ' Point3' , epsilon: float = APPROX)< / code > < a class = "header-anchor" href = "#def-approx-self-other-point3-epsilon-float-approx" aria-label = "Permalink to "*def* `approx(self, other: 'Point3', epsilon: float = APPROX)`"" > < / a > < / h4 > < / li > < / ul > < p > 判断两个点是否近似相等。< / p > < p > 参数:< / p > < p > other:< / p > < p > epsilon:< / p > < ul > < li > < h1 id = "-1" tabindex = "-1" > < a class = "header-anchor" href = "#-1" aria-label = "Permalink to """ > < / a > < / h1 > < / li > < / ul > < details > < summary > 源码< / 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;" > (self, other: < / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' Point3' < / 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 12:03:02 +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;" > other:< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > epsilon:< / span > < / span >
< span class = "line" > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > Returns:< / 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 >
2024-08-28 20:35:22 +08:00
< 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;" > ([< / 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;" > .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:#D73A49;--shiki-dark:#F97583;" > < < / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > epsilon, < / 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;" > .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:#D73A49;--shiki-dark:#F97583;" > < < / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > epsilon, < / 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;" > .z < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > -< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > other.z) < / 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 > < ul > < li > < h4 id = "def-str-self" tabindex = "-1" > < em > def< / em > < code > __str__(self)< / code > < a class = "header-anchor" href = "#def-str-self" aria-label = "Permalink to "*def* `__str__(self)`"" > < / a > < / h4 > < / li > < li > < h1 id = "-2" tabindex = "-1" > < a class = "header-anchor" href = "#-2" aria-label = "Permalink to """ > < / a > < / h1 > < / li > < / ul > < details > < summary > 源码< / 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;" > __str__< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self):< / 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;" > ' Point3(< / 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:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > , < / 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:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > , < / 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:#005CC5;--shiki-dark:#79B8FF;" > }< / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > )' < / span > < / span > < / code > < / pre > < / div > < / details > < ul > < li > < h4 id = "overload" tabindex = "-1" > < code > @overload< / code > < a class = "header-anchor" href = "#overload" aria-label = "Permalink to "`@overload`"" > < / a > < / h4 > < / li > < li > < h4 id = "def-add-self-other-vector3" tabindex = "-1" > < em > def< / em > < code > __add__(self, other: ' Vector3' )< / code > < a class = "header-anchor" href = "#def-add-self-other-vector3" aria-label = "Permalink to "*def* `__add__(self, other: 'Vector3')`"" > < / a > < / h4 > < / li > < li > < h1 id = "-3" tabindex = "-1" > < a class = "header-anchor" href = "#-3" aria-label = "Permalink to """ > < / a > < / h1 > < / li > < / ul > < details > < summary > 源码< / 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;" > @overload< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > __add__< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self, other: < / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' Vector3' < / 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:#005CC5;--shiki-dark:#79B8FF;" > ...< / span > < / span > < / code > < / pre > < / div > < / details > < ul > < li > < h4 id = "overload-1" tabindex = "-1" > < code > @overload< / code > < a class = "header-anchor" href = "#overload-1" aria-label = "Permalink to "`@overload`"" > < / a > < / h4 > < / li > < li > < h4 id = "def-add-self-other-point3" tabindex = "-1" > < em > def< / em > < code > __add__(self, other: ' Point3' )< / code > < a class = "header-anchor" href = "#def-add-self-other-point3" aria-label = "Permalink to "*def* `__add__(self, other: 'Point3')`"" > < / a > < / h4 > < / li > < li > < h1 id = "-4" tabindex = "-1" > < a class = "header-anchor" href = "#-4" aria-label = "Permalink to """ > < / a > < / h1 > < / li > < / ul > < details > < summary > 源码< / 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;" > @overload< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > def< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > __add__< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self, other: < / span > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > ' Point3' < / 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:#005CC5;--shiki-dark:#79B8FF;" > ...< / span > < / span > < / code > < / pre > < / div > < / details > < ul > < li > < h4 id = "def-add-self-other" tabindex = "-1" > < em > def< / em > < code > __add__(self, other)< / code > < a class = "header-anchor" href = "#def-add-self-other" aria-label = "Permalink to "*def* `__add__(self, other)`"" > < / a > < / h4 > < / li > < / ul > < p > P + V -> P P + P -> P< / p > < p > 参数:< / p > < p > other:< / p > < ul > < li > < h1 id = "-5" tabindex = "-1" > < a class = "header-anchor" href = "#-5" aria-label = "Permalink to """ > < / a > < / h1 > < / li > < / ul > < details > < summary > 源码< / 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;" > __add__< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > (self, other):< / 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;" > P + V -> P< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > P + P -> P< / 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;" > other:< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > Returns:< / 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:#24292E;--shiki-dark:#E1E4E8;" > Point3(< / 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 > < ul > < li > < h4 id = "def-eq-self-other" tabindex = "-1" > < em > def< / em > < code > __eq__(self, other)< / code > < a class = "header-anchor" href = "#def-eq-self-other" aria-label = "Permalink to "*def* `__eq__(self, other)`"" > < / a > < / h4 > < / li > < / ul > < p > 判断两个点是否相等。< / p > < p > 参数:< / p > < p > other:< / p > < ul > < li > < h1 id = "-6" tabindex = "-1" > < a class = "header-anchor" href = "#-6" aria-label = "Permalink to """ > < / a > < / h1 > < / li > < / ul > < details > < summary > 源码< / 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 >
< 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;" > other:< / span > < / span >
< span class = "line" > < span style = "--shiki-light:#032F62;--shiki-dark:#9ECBFF;" > Returns:< / 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:#24292E;--shiki-dark:#E1E4E8;" > approx(< / span > < span style = "--shiki-light:#005CC5;--shiki-dark:#79B8FF;" > self< / span > < span style = "--shiki-light:#24292E;--shiki-dark:#E1E4E8;" > .x, other.x) < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > and< / 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;" > .y, other.y) < / span > < span style = "--shiki-light:#D73A49;--shiki-dark:#F97583;" > and< / 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;" > .z, other.z)< / span > < / span > < / code > < / pre > < / div > < / details > < / div > < / div > < / main > < footer class = "VPDocFooter" data-v-aa782c77 data-v-f33b051d > <!-- [ --> <!-- ] --> <!-- --> < nav class = "prev-next" aria-labelledby = "doc-footer-aria-label" data-v-f33b051d > < span class = "visually-hidden" id = "doc-footer-aria-label" data-v-f33b051d > Pager< / span > < div class = "pager" data-v-f33b051d > < a class = "VPLink link pager-link prev" href = "/api/mp_math/plane.html" data-v-f33b051d > <!-- [ --> < span class = "desc" data-v-f33b051d > Previous page< / span > < span class = "title" data-v-f33b051d > mbcp.mp_math.plane< / span > <!-- ] --> < / a > < / div > < div class = "pager" data-v-f33b051d > < a class = "VPLink link pager-link next" href = "/api/mp_math/segment.html" data-v-f33b051d > <!-- [ --> < span class = "desc" data-v-f33b051d > Next page< / span > < span class = "title" data-v-f33b051d > mbcp.mp_math.segment< / span > <!-- ] --> < / a > < / div > < / nav > < / footer > <!-- [ --> <!-- ] --> < / div > < / div > < / div > <!-- [ --> <!-- ] --> < / div > < / div > <!-- --> <!-- [ --> <!-- ] --> < / 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 - e x . m d \ " : \ " D O s K a L 8 H \ " , \ " a p i _ i n d e x . m d \ " : \ " B v a z T q T B \ " , \ " a p i _ m p _ m a t h _ a n g l e . m d \ " : \ " 7 Z v A V H F T \ " , \ " a p i _ m p _ m a t h _ c o n s t . m d \ " : \ " B c 1 L x t c U \ " , \ " a p i _ m p _ m a t h _ e q u a t i o n . m d \ " : \ " D c g E 8 e l Z \ " , \ " a p i _ m p _ m a t h _ i n d e x . m d \ " : \ " 4 P 0 h k 6 g b \ " , \ " a p i _ m p _ m a t h _ l i n e . m d \ " : \ " C P z 5 W _ V 9 \ " , \ " a p i _ m p _ m a t h _ m p _ m a t h _ t y p i n g . m d \ " : \ " B H J O A x T l \ " , \ " a p i _ m p _ m a t h _ p l a n e . m d \ " : \ " B 7 M h 7 S K E \ " , \ " a p i _ m p _ m a t h _ p o i n t . m d \ " : \ " B h I b 1 H e T \ " , \ " a p i _ m p _ m a t h _ s e g m e n t . m d \ " : \ " B p L g q r Z 6 \ " , \ " a p i _ m p _ m a t h _ u t i l s . m d \ " : \ " B g m O N B d f \ " , \ " a p i _ m p _ m a t h _ v e c t o r . m d \ " : \ " B x i s U L 7 s \ " , \ " a p i _ p a r t i c l e _ i n d e x . m d \ " : \ " B R C S x C 3 e \ " , \ " a p i _ p r e s e t s _ i n d e x . m d \ " : \ " D l 6 S s 9 1 J \ " , \ " a p i _ p r e s e t s _ m o d e l _ i n d e x . m d \ " : \ " O 3 t M 1 J K S \ " , \ " e n _ a p i _ i n d e x . m d \ " : \ " B g u - L D 1 B \ " , \ " e n _ a p i _ m p _ m a t h _ a n g l e . m d \ " : \ " C p k g 1 4 N d \ " , \ " e n _ a p i _ m p _ m a t h _ c o n s t . m d \ " : \ " D f c W u G e V \ " , \ " e n _ a p i _ m p _ m a t h _ e q u a t i o n . m d \ " : \ " B E u b f l O s \ " , \ " e n _ a p i _ m p _ m a t h _ i n d e x . m d \ " : \ " D r j D U Y B Y \ " , \ " e n _ a p i _ m p _ m a t h _ l i n e . m d \ " : \ " J A q G 1 s D 6 \ " , \ " 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 \ " : \ " D h 1 b y 9 k w \ " , \ " e n _ a p i _ m p _ m a t h _ p l a n e . m d \ " : \ " B R P M k l J t \ " , \ " e n _ a p i _ m p _ m a t h _ p o i n t . m d \ " : \ " D _ A s G f 3 x \ " , \ " e n _ a p i _ m p _ m a t h _ s e g m e n t . m d \ " : \ " C R s 1 - I t g \ " , \ " e n _ a p i _ m p _ m a t h _ u t i l s . m d \ " : \ " C o X b S y s s \ " , \ " e n _ a p i _ m p _ m a t h _ v e c t o r . m d \ " : \ " D k 4 b 7 P 4 S \ " , \ " e n _ a p i _ p a r t i c l e _ i n d e x . m d \ " : \ " C m C 1 Q X 5 o \ " , \ " e n _ a p i _ p r e s e t s _ i n d e x . m d \ " : \ " C Z 5 h l _ 7 D \ " , \ " e n _ a p i _ p r e s e t s _ m o d e l _ i n d e x . m d \ " : \ " D D 5 W C Y A 0 \ " , \ " i n d e x . m d \ " : \ " C J v R m M f L \ " , \ " j a _ a p i _ i n d e x . m d \ " : \ " 4 B n f l F I m \ " , \ " j a _ a p i _ m p _ m a t h _ a n g l e . m d \ " : \ " B 0 v K - 3 H 7 \ " , \ " j a _ a p i _ m p _ m a t h _ c o n s t . m d \ " : \ " C Q Y - Q d b h \ " , \ " j a _ a p i _ m p _ m a t h _ e q u a t i o n . m d \ " : \ " C x O Z G 3 C k \ " , \ " j a _ a p i _ m p _ m a t h _ i n d e x . m d \ " : \ " C S A M H Y s B \ " , \ " j a _ a p i _ m p _ m a t h _ l i n e . m d \ " : \ " B _ s N S 7 i 2 \ " , \ " 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 \ " : \ " C e A S N a i E \ " , \ " j a _ a p i _ m p _ m a t h _ p l a n e . m d \ " : \ " D o F c s 9 O n \ " , \ " j a _ a p i _ m p _ m a t h _ p o i n t . m d \ " : \ " D s W U j R Q D \ " , \ " j a _ a p i _ m p _ m a t h _ s e g m e n t . m d \ " : \ " B 3 J R H b o i \ " , \ " j a _ a p i _ m p _ m a t h _ u t i l s . m d \ " : \ " C M a G J t H Q \ " , \ " j a _ a p i _ m p _ m a t h _ v e c t o r . m d \ " : \ " B a Q 1 g W X c \ " , \ " j a _ a p i _ p a r t i c l e _ i n d e x . m d \ " : \ " E 2 Y n H 7 E N \ " , \ " j a _ a p i _ p r e s e t s _ i n d e x . m d \ " : \ " A T G c H t 9 d \ " , \ " j a _ a p i _ p r e s e t s _ m o d e l _ i n d e x . m d \ " : \ " D 4 B A O C X n \ " , \ " m d - e x . m d \ " : \ " B X 0 W q O q v \ " } " ) ; w i n d o w . _ _ V P _ S I T E _ D A T A _ _ = 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 \ " : \ " M B C P d o c s \ " , \ " d e s c r i p t i o n \ " : \ " M B C P l i b r a r y d o c s \ " , \ " 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 \ " : { \ " s o c i a l L i n k s \ " : [ { \ " i c o n \ " : \ " g i t h u b \ " , \ " l i n k \ " : \ " h t t p s : / / g i t h u b . c o m / s n o w y k a m i / m b c p \ " } ] , \ " s i d e b a r \ " : { \ " / a p i / \ " : [ { \ " t e x t \ " : \ " a p i \ " , \ " i t e m s \ " : [ { \ " t e x t \ " : \ " m b c p \ " , \ " l i n k \ " : \ " / a p i / i n d e x . m d \ " } , { \ " 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 \ " , \ " l i n k \ " : \ " / a p i / m p _ m a t h / i n d e x . m d \ " } , { \ " t e x t \ " : \ " m b c p . m p _ m a t h . a n g l e \ " , \ " l i n k \ " : \ " / a p i / m p _ m a t h / a n g l e . m d \ " } , { \ " t e x t \ " : \ " m b c p . m p _ m a t h . c o n s t \ " , \ " l i n k \ " : \ " / a p i / m p _ m a t h / c o n s t . m d \ " } , { \ " t e x t \ " : \ " m b c p . m p _ m a t h . e q u a t i o n \ " , \ " l i n k \ " : \ " / a p i / m p _ m a t h / e q u a t i o n . m d \ " } , { \ " t e x t \ " : \ " m b c p . m p _ m a t h . l i n e \ " , \ " l i n k \ " : \ " / a p i / m p _ m a t h / l i n e . m d \ " } , { \ " t e x t \ " : \ " m b c p . m p _ m a t h . m p _ m a t h _ t y p i n g \ " , \ " l i n k \ " : \ " / a p i / m p _ m a t h / m p _ m a t h _ t y p i n g . m d \ " } , { \ " t e x t \ " : \ " m b c p . m p _ m a t h . p l a n e \ " , \ " l i n k \ " : \ " / a p i / m p _ m a t h / p l a n e . m d \ " } , { \ " t e x t \ " : \ " m b c p . m p _ m a t h . p o i n t \ " , \ " l i n k \ " : \ " / a p i / m p _ m a t h / p o i n t . m d \ " } , { \ " t e x t \ " : \ " m b c p . m p _ m a t h . s e g m e n t \ " , \ " l i n k \ " : \ " / a p i / m p _ m a t h / s e g m e n t . m d \ " } , { \ " t e x t \ " : \ " m b c p . m p _ m a t h . u t i l s \ " , \ " l i n k \ " : \ " / a p i / m p _ m a t h / u t i l s . m d \ " } , { \ " t e x t \ " : \ " m b c p . m p _ m a t h . v e c t o r \ " , \ " l i n k \ " : \ " / a p i / m p _ m a t h / v e c t o r . m d \ " } ] } , { \ " t e x t \ " : \ " p a r t i c l e \ " , \ " i t e m s \ " : [ { \ " t e x t \ " : \ " m b c p . p a r t i c l e \ " , \ " l i n k \ " : \ " / a p i / p a r t i c l e / i n d e x . m d \ " } ] } , { \ " t e x t \ " : \ " p r e s e t s \ " , \ " i t e m s \ " : [ { \ " t e x t \ " : \ " m b c p . p r e s e t s \ " , \ " l i n k \ " : \ " / a p i / p r e s e t s / i n d e x . m d \ " } , { \ " t e x t \ " : \ " m o d e l \ " , \ " i t e m s \ " : [ { \ " t e x t \ " : \ " m b c p . p r e s e t s . m o d e l \ " , \ " l i n k \ " : \ " / a p i / p r e s e t s / m o d e l / i n d e x . m d \ " } ] } ] } ] } ] , \ " / e n / \ " : [ { \ " t e x t \ " : \ " e n \ " , \ " i t e m s \ " : [ { \ " t e x t \ " : \ " a p i \ " , \ " i t e m s \ " : [ { \ " t e x t \ " : \ " m b c p \ " , \ " l i n k \ " : \ " / e n / a p i / i n d e x . m d \ " } , { \ " 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 \ " , \ " l i n k \ " : \ " / e n / a p i / m p _ m a t h / i n d e x . m d \ " } , { \ " t e x t \ " : \ " m b c p . m p _ m a t h . a n g l e \ " , \ " l i n k \ " : \ " / e n / a p i / m p _ m a t h / a n g l e . m d \ " } , { \ " t e x t \ " : \ " m b c p . m p _ m a t h . c o n s t \ " , \ " l i n k \ " : \ " / e n / a p i / m p _ m a t h / c o n s t . m d \ " } , { \ " t e x t \ " : \ " m b c p . m p _ m a t h . e q u a t i o n \ " , \ " l i n k \ " : \ " / e n / a p i / m p _ m a t h / e q u a t i o n . m d \ " } , { \ " t e x t \ " : \ " m b c p . m p _ m a t h . l i n e \ " , \ " l i n k \ " : \ " / e n / a p i / m p _ m a t h / l i n e . m d \ " } , { \ " t e x t \ " : \ " m b c p . m p _ m a t h . m p _ m a t h _ t y p i n g \ " , \ " l i n k \ " : \ " / e n / a p i / m p _ m a t h / m p
2024-08-28 12:03:02 +08:00
< / body >
< / html >