|
发表于 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.
不过返回的是弧度值,需要转换为角度值。
|
|