예제 #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)));
 }
예제 #2
0
 public void Offset(PointFloat offset)
 {
     X += offset.X;
     Y += offset.Y;
 }
예제 #3
0
 public bool Equals(PointFloat other)
 {
     return((X == other.X) && (Y == other.Y));
 }