System.Math.Vectors.Vector3D
Delphi
function Vector3D(const X, Y, Z: Single; const W: Single = 1.0): TVector3D; overload;
function Vector3D(const P: TPoint3D; const W: Single = 1.0): TVector3D; overload;
C++
extern DELPHI_PACKAGE TVector3D __fastcall Vector3D(const float X, const float Y, const float Z, 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 3D vector based on the given 3D space coordinates.
There are two Vector3D overloaded functions. The first one accepts the 3D space coordinates as Single floating-point values, while the second Vector3D overloaded function takes in the coordinates under the form of a TPoint3D.
If the w component of the 3D vector is not specified, it is assumed to be 1.0
.