System.Types.TPointF.Length

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Length: Single;

C++

float Length() const _ALWAYS_INLINE { return hypot(x, y); }

Properties

Type Visibility Source Unit Parent
function public
System.Types.pas
SystemTypes.h
System.Types TPointF

Description

Calculates the length of the hypotenuse from (0,0) to the (X,Y) coordinates of the TPointF object.

The magnitude of the hypotenuse is calculated with the square root of the sum of the squared coordinates.

See Also