GMap.NET.Core/GMap.NET/GPoint.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


namespace GMap.NET
{
   using System.Globalization;
   using System;

   /// <summary>
   /// the point ;}
   /// </summary>
   [Serializable]
   public struct GPoint
   {
      public static readonly GPoint Empty = new GPoint();

      private int x;
      private int y;

      public GPoint(int x, int y)
      {
         this.x = x;
         this.y = y;
      }

      public GPoint(GSize sz)
      {
         this.x = sz.Width;
         this.y = sz.Height;
      }

      //public GPoint(int dw)
      //{
      //   this.x = (short) LOWORD(dw);
      //   this.y = (short) HIWORD(dw);
      //}

      public bool IsEmpty
      {
         get
         {
            return x == 0 && y == 0;
         }
      }

      public int X
      {
         get
         {
            return x;
         }
         set
         {
            x = value;
         }
      }

      public int Y
      {
         get
         {
            return y;
后面还有 86 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。