示例#1
0
 public bool Contains(MapVectorD vect, bool onBorder = true)
 {
     if (onBorder)
     {
         return((vect.X >= X) &&
                (vect.Y >= Y) &&
                (vect.X <= X + Width) &&
                (vect.Y <= Y + Height));
     }
     else
     {
         return((vect.X > X) &&
                (vect.Y > Y) &&
                (vect.X < X + Width) &&
                (vect.Y < Y + Height));
     }
 }
示例#2
0
 public MapVector(MapVectorD source)
 {
     X = (int)Math.Round(source.X);
     Y = (int)Math.Round(source.Y);
 }