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


C# GeoXYPoint类代码示例

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


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

示例1: UpdateNearestCell

 private static void UpdateNearestCell(ISimUser user, ref ISimCellBase nearestCell, ref float minDistance, ISimCellBase cellBase)
 {
     GeoXYPoint trancXY = new GeoXYPoint(cellBase.X, cellBase.Y);
     GeoXYPoint userXY = new GeoXYPoint(user.X, user.Y);
     GeoXYLine trancToUser = new GeoXYLine(trancXY, userXY);
     FindNearestCell(ref nearestCell, ref minDistance, cellBase, trancToUser);
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:UserNearTranJudge.cs

示例2: getMatrixIndex

 private int getMatrixIndex(GeoXYPoint gPoint, double resolution, double northwestY, double northwestX, int colCount)
 {
     int num = 0;
     int num2 = (int) ((northwestY - gPoint.Y) / resolution);
     num = colCount * num2;
     return (num + ((int) ((gPoint.X - northwestX) / resolution)));
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:CalculateTargetValue.cs

示例3: CreateBlankUser

 private List<User> CreateBlankUser(int userNumber, List<GeoXYRect> rects, CellServiceContext ctx)
 {
     List<User> list = new List<User>();
     while (true)
     {
         double num;
         double num2;
         if (userNumber <= 0)
         {
             return list;
         }
         User user = new User();
         ClutterInfo info = new ClutterInfo(-1);
         int num3 = this.m_Random.Next(0, rects.Count);
         this.GenUserXY(user, out num, out num2, rects[num3]);
         GeoXYPoint geoXYPoint = new GeoXYPoint(num, num2);
         if (this.m_CellRectHelper.IsPoiontIsPolyRegion(geoXYPoint))
         {
             user.Clutter = info;
             user.Service = ctx.Service;
             user.LinkType = ctx.LinkType;
             user.Priority = 1;
             list.Add(user);
             if (userNumber == list.Count)
             {
                 return list;
             }
         }
     }
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:30,代码来源:CellUserGenerator.cs

示例4: CoverageDistributePoint

 public static List<GeoXYPoint> CoverageDistributePoint(GeoPolygon polygonPeak, double r)
 {
     List<GeoXYPoint> list = new List<GeoXYPoint>();
     GeoXYPoint centerPoint = new GeoXYPoint((polygonPeak.Right + polygonPeak.Left) / 2.0, (polygonPeak.Top + polygonPeak.Bottom) / 2.0);
     GeoXYPoint southwest = GetSouthWestPoint(polygonPeak.Left, polygonPeak.Right, polygonPeak.Top, polygonPeak.Bottom, centerPoint, r);
     GeoXYPoint northeast = GetNorthEastClutterPoint(polygonPeak.Left, polygonPeak.Right, polygonPeak.Top, polygonPeak.Bottom, centerPoint, r);
     list = InitialDistribute(southwest, northeast, r);
     int index = 0;
     while (index < list.Count)
     {
         if (!polygonPeak.IsPointInPolygon(list[index]))
         {
             list.RemoveAt(index);
             index--;
         }
         index++;
     }
     for (int i = 0; list.Count == 0; i++)
     {
         if (i >= polygonPeak.Points.Count)
         {
             return list;
         }
         list = InitialDistribute(polygonPeak.Points[i], northeast, r);
         for (index = 0; index < list.Count; index++)
         {
             if (!polygonPeak.IsPointInPolygon(list[index]))
             {
                 list.RemoveAt(index);
                 index--;
             }
         }
     }
     return list;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:35,代码来源:AutoDistribution.cs

示例5: AddPoint

 public void AddPoint(GeoXYPoint point)
 {
     if (point != null)
     {
         this.m_Points.Add(point);
     }
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:GeoXYLine.cs

示例6: CreatPoint

 private GeoXYPoint CreatPoint(Transceiver tranceiver)
 {
     GeoXYPoint pointCell = new GeoXYPoint();
     pointCell.X = tranceiver.X;
     pointCell.Y = tranceiver.Y;
     return pointCell;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:CalculatorAssistant.cs

示例7: CalcStartEndPoint

 private static void CalcStartEndPoint(float resolution, GeoXYPoint pointLeftTop, GeoXYPoint pointRightBottom, GeoXYPoint pointCell, float radius, out Point startP, out Point endP)
 {
     GetCalcRetangleForCell recTool = new GetCalcRetangleForCell(pointLeftTop, pointRightBottom, resolution, pointCell, radius);
     startP = new Point();
     endP = new Point();
     recTool.GetVirtualRetangle(ref startP, ref endP);
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:CalculatorAssistant.cs

示例8: MockGeoXYPoint

 public static GeoXYPoint MockGeoXYPoint()
 {
     GeoXYPoint point = new GeoXYPoint();
     point.X = 11000;
     point.Y = -13240;
     return point;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:GSMPointAnalysisMock.cs

示例9: Init

 public void Init()
 {
     m_ModelList = GSMPointAnalysisMock.MockModelList();
     m_Point = GSMPointAnalysisMock.MockGeoXYPoint();
     m_GSMCellCalculator = new GSMCellCalculator();
     
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:GSMCellCalculatorFixture.cs

示例10: Init

 public void Init()
 {
     m_ModelList = GSMPointAnalysisMock.MockModelList();
     RxPowerAndLinkLossModel modelimage = new RxPowerAndLinkLossModel();
     modelimage.RxPower = -90;
     Site site = GSMMock.MockSite();
     Transceiver transceiver = new Transceiver();
     transceiver.Parent = site;
     modelimage.Cell = new GSMTRX();
     modelimage.Cell.Parent = transceiver;
     modelimage.Cell.ID = 2;
     modelimage.DownLinkLoss = 112;
     modelimage.UpLinkLoss = 112;
     m_ModelList.Add(modelimage);
     m_Point = GSMPointAnalysisMock.MockGeoXYPoint();
     m_TargetPara = new TargetPara();
     m_TargetPara.TargetCIR = 9;
     m_TargetPara.TargetRxPower = -110;
     m_TargetPara.TargetThroughput = 12;
     m_Terminal = new Terminal();
     GSMTerminal gsmTerminal = new GSMTerminal();
     gsmTerminal.NetType = NetWorkType.GSM;
     m_Terminal.NetTerminalList.Add(gsmTerminal);
     m_Service = new UnionCsService();
     m_Service.CommonType = CommonServiceType.CSService;
     //modify by lyt 6.23
     GSMService gsmservice = new GSMService();
     ((UnionCsService)m_Service).CSServiceDic.Add(NetWorkType.GSM, gsmservice);
     m_ULDetail = (GSMULDetail)(cellCalc.CalculateUpLinkDetail(m_ModelList, point, m_Service, m_Terminal, m_mobility));
     //m_ULDetail = new GSMULDetail(m_ModelList, m_TargetPara, m_Service, m_Terminal);
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:31,代码来源:GSMULDetailFixture.cs

示例11: CellFilter

 public CellFilter()
 {
     this.m_polygonLeftTop = new GeoXYPoint();
     this.m_polygonRightBottom = new GeoXYPoint();
     this.m_cellLeftTop = new GeoXYPoint();
     this.m_cellRightBottom = new GeoXYPoint();
     this.m_cellPoint = new GeoXYPoint();
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:8,代码来源:CellFilter.cs

示例12: GetCalcRetangleForCell

 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="pointLT">计算区域外接矩形的左上角坐标</param>
 /// <param name="pointRB">计算区域外接矩形的右下角坐标</param>
 /// <param name="resolution">计算精度</param>
 /// <param name="cellPosition">小区的位置XY坐标</param>
 /// <param name="calcRadius">计算半径</param>
 public GetCalcRetangleForCell(GeoXYPoint pointLT, GeoXYPoint pointRB, float resolution, GeoXYPoint cellPosition, float calcRadius)
 {
     m_pointLT = pointLT;
     m_pointRB = pointRB;
     m_resolution = resolution;
     m_cellPosition = cellPosition;
     m_calcRadius = calcRadius;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:16,代码来源:GetCalcRetangleForCell.cs

示例13: BuildArcPath

 private GraphicsPath BuildArcPath(GeoXYPoint position, GeoPointStyle pointStyle)
 {
     Point point = this.m_Helper.PlaneToScreen(position);
     Point location = new Point(point.X - (pointStyle.IconSize.Width / 2), point.Y - (pointStyle.IconSize.Height / 2));
     Rectangle rect = new Rectangle(location, pointStyle.IconSize);
     GraphicsPath path = new GraphicsPath();
     path.AddArc(rect, 0f, 360f);
     return path;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:9,代码来源:GeoEntityRegionMgr.cs

示例14: ConstructCalcInfo

 private TranceiverCalcInfo ConstructCalcInfo(IACell cell, float resolution, GeoXYPoint pointLeftTop, GeoXYPoint pointRightBottom, GeoXYPoint pointCell, Transceiver tranceiver)
 {
     float radius = GetMaxCalcRadius(tranceiver);
     Point startP;
     Point endP;
     CalcStartEndPoint(resolution, pointLeftTop, pointRightBottom, pointCell, radius, out startP, out endP);
     TranceiverCalcInfo calcInfo = new TranceiverCalcInfo(tranceiver, startP, endP, cell);
     return calcInfo;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:9,代码来源:CalculatorAssistant.cs

示例15: CalculateDownLinkDetail

        //public double CalculateAsRxPower(IACell cell, GeoXYPoint point, float Linkloss)
        //{
            //double m_TRXPower = ((GSMTRX)cell).MaxPower;
            //GSMTRX isGSMCell = cell as GSMTRX;
            //if (isGSMCell != null)
            //{
            //GSMTerminal gsmTerminal = (GSMTerminal)terminal.GetNetWorkTerminal(NetWorkType.GSM);
            //double terminalGain = gsmTerminal.Gain;
            //double serviceLoss = ((GSMService)service).BodyLoss;
            //return m_TRXPower + terminalGain - serviceLoss - linkloss;
            //}
            //else
            //{
            //    return double.NegativeInfinity;
            //}
        //    return CalculateRxPower(cell, point, Linkloss);
        //}

        public IDetail CalculateDownLinkDetail(List<RxPowerAndLinkLossModel> ModelList, GeoXYPoint point, Service service, Mobility mobility, Terminal terminal)
        {
            TargetPara target = new TargetPara();
            InitData(ModelList, service, terminal, target);
            m_DlBestCell = FindDlBestServer();
            m_IInterf = InitInterfCalc();
            DlResultImage();
            DlJudgeAccess(target);
            return dlDetail;
        }
开发者ID:xiaoyj,项目名称:Space,代码行数:28,代码来源:GSMCellCalculator.cs


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