System.Types.TPointF.MidPoint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function MidPoint(const APoint: TPointF): TPointF; inline;

C++

TPointF MidPoint(const TPointF &P) const _ALWAYS_INLINE {

Properties

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

Description

Calculates the halfway point of the segment created by the current TPointF object and the APoint provided.

  • APoint: The point provided to calculate the midpoint of the segment created by the two points.

MidPoint returns the coordinates of the midpoint TPointF object that results of dividing the line segment into two equal parts.

See Also