[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

PointsEqual

Check whether two TPointvariables are equal.

Declaration

Source position: line 0

function PointsEqual(

  const P1: TPoint;

  const P2: TPoint

):Boolean;

function PointsEqual(

  const P1: TSmallPoint;

  const P2: TSmallPoint

):Boolean;

Description

PointsEqualcompares the P1and P2points (of type TPointor TSmallPoint) and returns Trueif the Xand Ycoordinates of the points are equal, or Falseotherwise.

See also

TPoint

  

Special type to handle a fake TComponentposition

TSmallPoint

  

Type to describe point in a small plane.

InvalidPoint

  

Check whether a point is invalid.