System.Types.PointF
Delphi
function PointF(X, Y: Single): TPointF;
C++
extern DELPHI_PACKAGE TPointF __fastcall PointF(float X, float Y)/* overload */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.Types.pas System.Types.hpp |
System.Types | System.Types |
Description
Returns an instance of TPointF.
The point is initialized from two Single values, X and Y, or by taking the coordinates from a TVector.
Note: The vector's coordinates represent the position of its terminal point in two-dimensional space.
Call PointF to create a TPointF that represents the specified Single coordinates. Use PointF to construct parameters for functions that require a point with floating-point coordinates, rather than setting up local variables for each parameter.