System.Types.MinPoint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function MinPoint(const P1, P2: TPointF): TPointF;
function MinPoint(const P1, P2: TPoint): TPoint;

C++

extern DELPHI_PACKAGE TPointF __fastcall MinPoint(const TPointF &P1, const TPointF &P2)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Types.pas
System.Types.hpp
System.Types System.Types

Description

Returns the minimum TPoint or TPointF.

MinPoint compares the Y-coordinates of P1 and P2 and returns the point that is closer to the origin. When the Y-coordinates are equal, it compares the X-coordinates.

See Also

Code Examples