阅读:1640回复:2
[求助]AE中最近点
<P>已知1个点和1条线,要获取该点离线最近的,线上的一点,engine中有这样的接口吗?</P>
<P>用<STRONG>HitTest </STRONG>的话好象没有返回点</P> <P><STRONG>Public Function HitTest ( _</STRONG><BR> <B>ByVal</B> <I>QueryPoint</I><B> As </B><a>IPoint</A>, _<BR> <B>ByVal</B> <I>searchRadius</I><B> As </B><a>Double</A>, _<BR> <B>ByVal</B> <I>geometryPart</I><B> As </B><a>esriGeometryHitPartType</A>, _<BR> <B>ByVal</B> <I>hitPoint</I><B> As </B><a>IPoint</A>, _<BR> <B>ByRef</B> <I>hitDistance</I><B> As </B><a>Double</A>, _<BR> <B>ByRef</B> <I>hitPartIndex</I><B> As </B><a>Integer</A>, _<BR> <B>ByRef</B> <I>hitSegmentIndex</I><B> As </B><a>Integer</A>, _<BR> <B>ByRef</B> <I>bRightSide</I><B> As </B><a>Boolean</A> _<BR><B>) As</B> <a>Boolean</A></P> |
|
1楼#
发布于:2008-06-29 23:42
ICurve.QueryPointAndDistance ?
|
|
|
2楼#
发布于:2008-06-30 09:35
谢谢了啊,那个好象可以,另外还找到一个IProximityOperator.<a href="ms-help://ESRI.EDNv9.2/esriGeometry/html/IProximityOperator_ReturnNearestPoint.htm" target="_blank" >ReturnNearestPoint</A>
|
|