- (defun c:tt ()
- "黄金比矩形"
- (setq dd (Udist 7 "" "短边长<输入或鼠标直接量取>" dd nil)
- sc (/ (- (sqrt 5) 1) 2.) ;黄金比
- )
- (while (setq p1 (getpoint "\n起点<退出>: "))
- (setq p2 (list (+ (car p1) dd) (+ (cadr p1) (* dd sc)))
- s1 (command "rectang" "non" p1 "non" p2)
- )
- )
- (princ)
- )
|