|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WP7Calcoolation.Core
{
/// <summary>
/// Represents a (X, y) pair of coordinates.
/// </summary>
public class Point
{
#region attributes
int x = 0;
int y = 0;
#endregion attributes
#region constructor
public Point(int x, int y)
{
this.x = x;
this.y = y;
}
#endregion constructor
#region methods
public override bool Equals(object obj)
{
Point p = (Point)obj;
return (p.X == this.X && p.Y == this.Y);
}
#endregion methods
#region properties
public int X { get { return x; } }
public int Y { get { return y; } }
#endregion properties
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.