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)); } }
public MapVector(MapVectorD source) { X = (int)Math.Round(source.X); Y = (int)Math.Round(source.Y); }