本帖最后由 xyp1964 于 2019-1-26 17:04 编辑
- ;; xyp-get-MidPoint 两点之中点 (xyp-get-MidPoint p1 p2)
- (defun xyp-get-MidPoint (p1 p2) (mapcar '(lambda (x) (* x 0.5)) (mapcar '+ p1 p2)))
- ;; xyp-get-MidPointUP 垂直平分线上定点-波峰 (xyp-get-MidPointUP p1 p2 dd)
- (defun xyp-get-MidPointUP (p1 p2 dd)
- (polar (xyp-get-MidPoint p1 p2) (+ (angle p1 p2) (* pi 0.5)) dd)
- )
- ;; xyp-get-MidPointDN 垂直平分线上定点-波谷 (xyp-get-MidPointDN p1 p2 dd)
- (defun xyp-get-MidPointDN (p1 p2 dd)
- (polar (xyp-get-MidPoint p1 p2) (- (angle p1 p2) (* pi 0.5)) dd)
- )
|