update 增加速度设置,点位比对,启动警报等
This commit is contained in:
@ -8,4 +8,7 @@ def get_distance(p1, p2):
|
||||
:param p2:
|
||||
:return:
|
||||
"""
|
||||
return math.sqrt((p1.X - p2.X) ** 2 + (p1.Y - p2.Y) ** 2+ (p1.Z - p2.Z)**2)
|
||||
return math.sqrt((p1.X - p2.X) ** 2 + (p1.Y - p2.Y) ** 2+ (p1.Z - p2.Z)**2)
|
||||
|
||||
def is_bit_set(n, position):
|
||||
return (n >> position) & 1 == 1
|
||||
Reference in New Issue
Block a user