Show: Delphi C++
Display Preferences

System.Math.Vectors.Vector

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

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

Description

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

Personal tools
In Other Languages
Previous Versions
Assistance