Exemple #1
0
 public bool Contains(PointFloat value)
 {
     return(((value.X > (X - Width / 2))) && (value.Y > (Y - Height / 2)) &&
            (value.X < (X + Width / 2)) && (value.Y < (Y + Height / 2)));
 }
Exemple #2
0
 public void Offset(PointFloat offset)
 {
     X += offset.X;
     Y += offset.Y;
 }
 public bool Equals(PointFloat other)
 {
     return((X == other.X) && (Y == other.Y));
 }