Structure for representing a pair of coordinates of float type.Namespace: AForge
Assembly: AForge (in AForge.dll) Version: 126.96.36.199 (188.8.131.52)
[SerializableAttribute] public struct Point
The structure is used to store a pair of floating point coordinates with single precision.
// assigning coordinates in the constructor Point p1 = new Point( 10, 20 ); // creating a point and assigning coordinates later Point p2; p2.X = 30; p2.Y = 40; // calculating distance between two points float distance = p1.DistanceTo( p2 );