mirror of
https://github.com/snowykami/mbcp.git
synced 2026-04-27 12:55:37 +00:00
📝 测试文档部署
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user