System.Types.TPoint.Subtract

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Subtract(const Point: TPoint): TPoint;

Properties

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

Description

Calculates the difference between two TPoint objects.

The X property of the result is the difference between the X value of the first TPoint and the value of X of the second TPoint. The Y property of the result is the difference between the Y value of the first TPoint and the value of Y of the second TPoint.

See Also