AnsweredAssumed Answered

Get the point along a curve

Question asked by shaningesri on Sep 27, 2013
Latest reply on Sep 27, 2013 by rfairhur24
For a curve, I want to get the point at a distance from the curve's start point.  A piece of code is below:
            ICurve pCurve = (ICurve)feature.ShapeCopy;   // feature is a IFeature
            IPoint startPoint = pCurve.FromPoint;
            IPoint toPoint = pCurve.ToPoint;
            double distanceOnCurve = 0.4 * pCurve.Length;
            double offset = double.NaN;
            bool isRightSide = false;
            bool asRatio = false;
            pCurve.QueryPointAndDistance(esriSegmentExtension.esriNoExtension, startPoint, asRatio, toPoint,
                ref distanceOnCurve, ref offset, ref isRightSide);
But I don't know how the result be returned as a Point.  Appreciate in advance if you can provide a hint.

Outcomes