Structure for representing a pair of coordinates of integer type.

Namespace:  AForge
Assembly:  AForge (in AForge.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
[SerializableAttribute]
public struct IntPoint

Remarks

The structure is used to store a pair of integer coordinates.

Sample usage:

CopyC#
// 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 );

See Also