本文整理汇总了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();
}
示例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;
}
示例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;
}
}
}