乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 56|回复: 3

一个关于求角度的问题

[复制链接]

16

主题

45

帖子

4

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
109
发表于 2003-12-22 10:58:00 | 显示全部楼层 |阅读模式
用getangle来得到角度还必须在屏幕上点一下,但其实我那点的数据都有了,能不能不去屏幕点那一下啊,搞得程序被中断,很不爽
有没有别的函数直接通过线段的两端点就可以得到角度啊
回复

使用道具 举报

17

主题

80

帖子

8

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
148
发表于 2003-12-22 11:47:00 | 显示全部楼层
(angle pt1 pt2)
回复

使用道具 举报

63

主题

1203

帖子

10

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1455
发表于 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.
回复

使用道具 举报

16

主题

45

帖子

4

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
109
发表于 2003-12-22 11:55:00 | 显示全部楼层
哦,原来是这样,呵呵,谢谢
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-7-8 18:32 , Processed in 0.522781 second(s), 60 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表