- 积分
- 19100
- 明经币
- 个
- 注册时间
- 2003-8-16
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2003-12-22 11:52:00
|
显示全部楼层
計算兩點的角度在幫助文件中有
Returns an angle in radians of a line defined by two endpoints
(angle pt1 pt2)
Arguments
pt1
An endpoint.
pt2
An endpoint.
Return Values
An angle, in radians.
The angle is measured from the X axis of the current construction plane, in radians, with angles increasing in the counterclockwise direction. If 3D points are supplied, they are projected onto the current construction plane.
Examples
Command: (angle '(1.0 1.0) '(1.0 4.0))
1.5708
Command: (angle '(5.0 1.33) '(2.4 1.33))
3.14159
See Also
The Angular Conversion topic in the AutoLISP Developer's Guide. |
|