From RAD Studio API Documentation
Jump to: navigation, search


function Vector(const X, Y: Single; const W: Single = 1.0): TVector;
function Vector(const P: TPointF; const W: Single = 1.0): TVector;


extern DELPHI_PACKAGE TVector __fastcall Vector(const float X, const float Y, const float W = 1.000000E+00f)/* overload */;


Type Visibility Source Unit Parent
function public
System.Math.Vectors System.Math.Vectors


Generates a vector based on the given X and Y 2D coordinates.

There are two Vector overloaded functions. The first one accepts the X and Y coordinates as Single floating-point values, while the second Vector overloaded function accepts the TPointF format 2D coordinates.

To be able to realize a vector transformation using a transformation matrix, the third W coordinate is added. If the W is not explicitly specified, it is assumed to be W = 1.0. The W coordinate value is ignored in all methods that use TVector and are declared inside the FMX.Types unit.

See Also