看板 Cad_Cae 關於我們 聯絡資訊
下面是 原廠的 on-line help 所給的說明。 polar Returns the UCS 3D point at a specified angle and distance from a point (polar pt ang dist)Arguments pt A 2D or 3D point. ang An angle expressed in radians relative to the world X axis. Angles increase in the counterclockwise direction, independent of the current construction plane. dist Distance from the specified pt. Return Values A 2D or 3D point, depending on the type of point specified by pt. Examples Supplying a 3D point to polar: Command: (polar '(1 1 3.5) 0.785398 1.414214) // 從 座標點 '(x y z) 沿著 theta 角 ,使用 弳度量計算的角度, 前進 s 的距離,會 return 一個新的 座標點 (2.0 2.0 3.5) Supplying a 2D point to polar: Command: (polar '(1 1) 0.785398 1.414214) (2.0 2.0) ※ 引述《kihg (值得努力)》之銘言: : 請問用lisp寫 (polar x (* pi (/ 75 180)) y)) // x 的地方,應該使用一個點的座標 角度的計算,必須使用 (* (/ 75.0 180.0) pi) y 的地方,必須是一個 前進的距離 : 為什麼跑出來的都是一條水平線? : 照理說不是應該是75度的直線嘛? : 還是有其他問題? : 謝謝 -- e-mail: sjgau4311@gmail.com 我的課程介紹網頁: http://www.csie.ntu.edu.tw/train/teacher_display.php?num=18 AutoCAD 台灣地區菁英講師獲選 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.231.81.202