当前位置: 首页>>代码示例>>C#>>正文


C# GeoXYPoint.Clone方法代码示例

本文整理汇总了C#中GeoXYPoint.Clone方法的典型用法代码示例。如果您正苦于以下问题:C# GeoXYPoint.Clone方法的具体用法?C# GeoXYPoint.Clone怎么用?C# GeoXYPoint.Clone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GeoXYPoint的用法示例。


在下文中一共展示了GeoXYPoint.Clone方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetValueByLineAssist

 private short[] GetValueByLineAssist(List<GeoXYPoint> pointInGeoXYLine, GeoXYPoint largePoint, GeoXYPoint smallPoint, double xOffSet, double yOffSet, bool isDivInsert)
 {
     List<short> tempValue = new List<short>();
     GeoXYPoint point = largePoint.Clone();
     if (largePoint.X > smallPoint.X)
     {
         this.GetTempValueByLineMinus(pointInGeoXYLine, point, smallPoint, ref tempValue, xOffSet, yOffSet, isDivInsert);
     }
     else
     {
         this.GetTempValueByLinePlus(pointInGeoXYLine, ref point, smallPoint, ref tempValue, xOffSet, yOffSet, isDivInsert);
     }
     tempValue.Add(this.GetValueByGeoXYPoint(smallPoint, isDivInsert));
     pointInGeoXYLine.Add(smallPoint);
     return tempValue.ToArray();
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:16,代码来源:GeoDataAssist.cs

示例2: MakeLargeAndSmallPoint

 private static bool MakeLargeAndSmallPoint(GeoXYPoint startPoint, GeoXYPoint endPoint, bool isNeedReverse, out GeoXYPoint largePoint, out GeoXYPoint smallPoint)
 {
     if (startPoint.Y < endPoint.Y)
     {
         largePoint = endPoint.Clone();
         smallPoint = startPoint.Clone();
         isNeedReverse = true;
         return isNeedReverse;
     }
     largePoint = startPoint.Clone();
     smallPoint = endPoint.Clone();
     return isNeedReverse;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:13,代码来源:GeoDataAssist.cs

示例3: GetTempValueByLinePlus

 private void GetTempValueByLinePlus(List<GeoXYPoint> pointInGeoXYLine, ref GeoXYPoint largePoint, GeoXYPoint smallPoint, ref List<short> tempValue, double xOffSet, double yOffSet, bool isDivInsert)
 {
     if ((xOffSet <= 0.0) && (yOffSet <= 0.0))
     {
         tempValue.Add(this.GetValueByGeoXYPoint(largePoint, isDivInsert));
     }
     else if (largePoint.X == smallPoint.X)
     {
         while (largePoint.Y > smallPoint.Y)
         {
             tempValue.Add(this.GetValueByGeoXYPoint(largePoint, isDivInsert));
             pointInGeoXYLine.Add(largePoint.Clone());
             largePoint.Y -= yOffSet;
         }
     }
     else if (largePoint.Y == smallPoint.Y)
     {
         while (largePoint.X < smallPoint.X)
         {
             tempValue.Add(this.GetValueByGeoXYPoint(largePoint, isDivInsert));
             pointInGeoXYLine.Add(largePoint.Clone());
             largePoint.X += xOffSet;
         }
     }
     else
     {
         while ((largePoint.X < smallPoint.X) && (largePoint.Y > smallPoint.Y))
         {
             tempValue.Add(this.GetValueByGeoXYPoint(largePoint, isDivInsert));
             pointInGeoXYLine.Add(largePoint.Clone());
             largePoint.X += xOffSet;
             largePoint.Y -= yOffSet;
         }
     }
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:35,代码来源:GeoDataAssist.cs


注:本文中的GeoXYPoint.Clone方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。