ArcObjects Library Reference  (Geometry)    

IPoint.ConstrainAngle Method

Projects this point to the point on the infinite line defined by anchor and angle (in radians). If allowOpposite is true, then the point can also snap to angle + pi radians.

[Visual Basic 6.0]
Sub ConstrainAngle(
    ByVal constraintAngle As Double, _
    ByVal anchor As IPoint, _
    ByVal allowOpposite As Boolean _
)
[Visual Basic .NET]
Public Sub ConstrainAngle ( _
    ByVal constraintAngle As Double, _
    ByVal anchor As IPoint, _
    ByVal allowOpposite As Boolean _
)
[C#]
public void ConstrainAngle (
    double constraintAngle,
    IPoint anchor,
    bool allowOpposite
);
[Java]
public void constrainAngle (
    double constraintAngle,
    IPoint anchor,
    Boolean allowOpposite
)
throws
    IOException,
    AutomationException
[C++]
HRESULT ConstrainAngle(
  double constraintAngle,
  IPoint* anchor,
  VARIANT_BOOL allowOpposite
);
[C++]

Parameters

constraintAngle

  constraintAngle is a parameter of type double

anchor

  anchor is a parameter of type IPoint

allowOpposite

  allowOpposite is a parameter of type VARIANT_BOOL

Product Availability

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

Description

Projects the base Point to to the nearest point on the line defined by an input anchor point and input angle.  ConstrainAngle is used by the editor to force a newly created Point to be on the line between a fixed point and a specified angle.

Remarks

ContrainAngle

See Also

IPoint Interface | IPoint.ConstrainDistance Method

Example

ConstrainAngle_Example

 


Feedback Send feedback on this page