The structure is used to store a pair of integer coordinates.
Sample usage:
// assigning coordinates in the constructor IntPoint p1 = new IntPoint( 10, 20 ); // creating a point and assigning coordinates later IntPoint p2; p2.X = 30; p2.Y = 40; // calculating distance between two points float distance = p1.DistanceTo( p2 );