乐筑天下

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

在arx中 如何获得角度值

[复制链接]

5

主题

16

帖子

1

银币

初来乍到

Rank: 1

铜币
36
发表于 2006-8-25 22:56:00 | 显示全部楼层 |阅读模式
在arx中 如何直接获得角度值
(360度格式,非弧度数值)
比如 输入15 ,即角度为15度
回复

使用道具 举报

5

主题

16

帖子

1

银币

初来乍到

Rank: 1

铜币
36
发表于 2006-8-28 15:28:00 | 显示全部楼层
怎么没人能帮我?
回复

使用道具 举报

4

主题

17

帖子

2

银币

初来乍到

Rank: 1

铜币
33
发表于 2006-8-28 15:43:00 | 显示全部楼层
ARX有一个全局函数AcUtAngle();
原型及解释如下,在ARX的帮助中有:
ads_real
acutAngle(
const ads_point pt1,
const ads_point pt2);
pt1
Description to comept2
Description to come
Finds the angle between a line and the current X axis.
Returns the angle of the line defined by pt1 and pt2. The acutAngle() function measures the angle from the X axis of the current User Coordinate System (UCS), with the angle increasing in the counterclockwise direction. It returns the value in radians. This function treats pt1 and pt2 as two-dimensional points; it ignores their Z coordinates, in effect projecting the line onto the current construction plane.
不过返回的是弧度值,需要转换为角度值。
回复

使用道具 举报

4

主题

17

帖子

2

银币

初来乍到

Rank: 1

铜币
33
发表于 2006-8-28 15:44:00 | 显示全部楼层
不好意思,函数名写错了,是acutAngle,不是AcUtAngle
回复

使用道具 举报

5

主题

16

帖子

1

银币

初来乍到

Rank: 1

铜币
36
发表于 2006-8-29 16:55:00 | 显示全部楼层
您好像没看懂我的意思
应该是这样
从键盘输入 15 给参数 angle
则angle=15度,
就像输入ads_real 一样的


回复

使用道具 举报

16

主题

57

帖子

2

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
121
发表于 2006-8-30 10:44:00 | 显示全部楼层
好象不能直接做,但是你可以从程序里,将弧度值修改为角度值,然后赋 给一个变量,很简单的
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-2-5 20:39 , Processed in 0.307760 second(s), 64 queries .

© 2020-2025 乐筑天下

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