def test_collinear(pt1, pt2, pt3):
Ax = pt1[0]
Ay = pt1[1]
Bx = pt2[0]
By = pt2[1]
Cx = pt3[0]
Cy = pt3[1]
return math.isclose(Ax * (By - Cy) + Bx * (Cy - Ay) + Cx * (Ay - By), 0, abs_tol=1e-07)
rand_moving_stationary_generator.py 文件源码
python
阅读 49
收藏 0
点赞 0
评论 0
评论列表
文章目录