ArcObjects Library Reference  (Geometry)    

IPoint.ConstrainDistance Method

Projects this point to the perimeter of the circle defined by radius and anchor.

[Visual Basic 6.0]
Sub ConstrainDistance(
    ByVal constraintRadius As Double, _
    ByVal anchor As IPoint _
)
[Visual Basic .NET]
Public Sub ConstrainDistance ( _
    ByVal constraintRadius As Double, _
    ByVal anchor As IPoint _
)
[C#]
public void ConstrainDistance (
    double constraintRadius,
    IPoint anchor
);
[Java]
public void constrainDistance (
    double constraintRadius,
    IPoint anchor
)
throws
    IOException,
    AutomationException
[C++]
HRESULT ConstrainDistance(
  double constraintRadius,
  IPoint* anchor
);
[C++]

Parameters

constraintRadius

  constraintRadius is a parameter of type double

anchor

  anchor is a parameter of type IPoint

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Sets the base Point to a location a specified distance from the input anchor Point along the line between the two points.  ConstrainDistance is used by the editor to fix the distance between an anchor point and an input Point.  Thus, the input to be created must lie on the circumference defined by the anchor point and the fixed distance radius with the angle determined by the user.

Remarks

ConstrainDistance

See Also

IPoint Interface

Example

ConstrainDistance_Example

 


Feedback Send feedback on this page