From 60763de4071b79cdb0af90c7d21f4ea379966f37 Mon Sep 17 00:00:00 2001 From: snowykami Date: Sat, 31 Aug 2024 09:40:32 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E6=94=B9dead=20link?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mbcp/__init__.py | 6 +++--- mbcp/mp_math/vector.py | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/mbcp/__init__.py b/mbcp/__init__.py index a52af4a..fc3b67a 100644 --- a/mbcp/__init__.py +++ b/mbcp/__init__.py @@ -3,10 +3,10 @@ 本模块是主模块,提供了一些工具 可导入 -[`mbcp.mp_math`](./mp_math):数学工具 +[`mbcp.mp_math`](./mp_math/):数学工具 -[`mbcp.particle`](./particle):粒子生成工具 +[`mbcp.particle`](./particle/):粒子生成工具 -[`mbcp.presets`](./presets):预设 +[`mbcp.presets`](./presets/):预设 """ from .mp_math import * diff --git a/mbcp/mp_math/vector.py b/mbcp/mp_math/vector.py index cfc3b92..a6102b6 100644 --- a/mbcp/mp_math/vector.py +++ b/mbcp/mp_math/vector.py @@ -19,9 +19,9 @@ class Vector3: """ 3维向量 Args: - x: x轴分量 - y: y轴分量 - z: z轴分量 + x ([`float`](https%3A//docs.python.org/3/library/functions.html#float)): x轴分量 + y (`float`): y轴分量 + z (`float`): z轴分量 """ self.x = x self.y = y @@ -31,11 +31,11 @@ class Vector3: """ 判断两个向量是否近似相等。 Args: - other: - epsilon: + other ([`Vector3`](#class-vector3)): 另一个向量 + epsilon ([`float`](https%3A//docs.python.org/3/library/functions.html#float)): 误差 Returns: - 是否近似相等 + [`bool`](https%3A//docs.python.org/3/library/functions.html#bool): 是否近似相等 """ return all([abs(self.x - other.x) < epsilon, abs(self.y - other.y) < epsilon, abs(self.z - other.z) < epsilon])