📝 测试文档部署

This commit is contained in:
2024-08-28 21:27:52 +08:00
parent 0320f13ae9
commit de42d34e38
16 changed files with 493 additions and 426 deletions

View File

@@ -41,6 +41,8 @@ class Plane3:
Returns:
是否近似相等
"""
a = 3 # 测试变量
if self.a != 0:
k = other.a / self.a
return approx(other.b, self.b * k) and approx(other.c, self.c * k) and approx(other.d, self.d * k)

View File

@@ -62,15 +62,15 @@ class Point3:
"""
return approx(self.x, other.x) and approx(self.y, other.y) and approx(self.z, other.z)
# def __sub__(self, other: "Point3") -> "Vector3":
# """
# P - P -> V
#
# P - V -> P 已在 :class:`Vector3` 中实现
# Args:
# other:
# Returns:
#
# """
# from .vector import Vector3
# return Vector3(self.x - other.x, self.y - other.y, self.z - other.z)
def __sub__(self, other: "Point3") -> "Vector3":
"""
P - P -> V
P - V -> P 已在 :class:`Vector3` 中实现
Args:
other:
Returns:
"""
from .vector import Vector3
return Vector3(self.x - other.x, self.y - other.y, self.z - other.z)