private IPoint UpdateFeedback(IPoint centerPoint, double axisTypeDistance)
{
if (centerPoint != null && axisTypeDistance > 0.0)
{
if (feedback == null)
{
var mxdoc = ArcMap.Application.Document as IMxDocument;
CreateFeedback(centerPoint, mxdoc.FocusMap as IActiveView);
feedback.Start(centerPoint);
}
// now get second point from distance and bearing
var construct = new Polyline() as IConstructGeodetic;
if (construct == null)
{
return null;
}
construct.ConstructGeodeticLineFromDistance(GetEsriGeodeticType(), centerPoint, GetLinearUnit(), axisTypeDistance,
GetAzimuthAsDegrees(), esriCurveDensifyMethod.esriCurveDensifyByDeviation, -1.0);
var line = construct as IPolyline;
if (line.ToPoint != null)
{
//FeedbackMoveTo(line.ToPoint);
return line.ToPoint;
}
}
return null;
}