public AddPoint ( IPoint pointToBeAdded ) : void | ||
pointToBeAdded | IPoint | /// The point to be added. /// |
Результат | void |
/// <summary> /// Get smaller AOI /// </summary> /// <param name="startingPoint"> /// The starting point. /// </param> /// <param name="env"> /// The env. /// </param> /// <param name="nextPoint"> /// The next point. /// </param> /// <returns> /// The <see cref="GbdPolygon"/>. /// </returns> private static GbdPolygon GetSmallerAoi(IPoint startingPoint, IEnvelope env, out IPoint nextPoint) { var polygon = new GbdPolygon(); IPoint pnt1 = new PointClass(); IPoint pnt2 = new PointClass(); IPoint pnt3 = new PointClass(); var xValue = GetX(startingPoint, env); var yValue = GetY(startingPoint, env); pnt1.PutCoords(xValue, startingPoint.Y); pnt2.PutCoords(xValue, yValue); pnt3.PutCoords(startingPoint.X, yValue); polygon.AddPoint(pnt1); polygon.AddPoint(pnt2); polygon.AddPoint(pnt3); nextPoint = pnt1; return(polygon); }
/// <summary> /// Get smaller AOI /// </summary> /// <param name="startingPoint"> /// The starting point. /// </param> /// <param name="env"> /// The env. /// </param> /// <param name="nextPoint"> /// The next point. /// </param> /// <returns> /// The <see cref="GbdPolygon"/>. /// </returns> private static GbdPolygon GetSmallerAoi(IPoint startingPoint, IEnvelope env, out IPoint nextPoint) { var polygon = new GbdPolygon(); IPoint pnt1 = new PointClass(); IPoint pnt2 = new PointClass(); IPoint pnt3 = new PointClass(); var xValue = GetX(startingPoint, env); var yValue = GetY(startingPoint, env); pnt1.PutCoords(xValue, startingPoint.Y); pnt2.PutCoords(xValue, yValue); pnt3.PutCoords(startingPoint.X, yValue); polygon.AddPoint(pnt1); polygon.AddPoint(pnt2); polygon.AddPoint(pnt3); nextPoint = pnt1; return polygon; }