record TVector4f

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TVector4f = record

Description

4D (3D + w) floating-point vector.

Overview

Fields

X: VectorFloat;
Y: VectorFloat;
Z: VectorFloat;
W: VectorFloat;

Methods

function GetXYZ: TVector3f; inline;
function Lerp(const Vector: TVector4f; const Theta: VectorFloat): TVector4f;
function ProjectToXYZ: TVector3f;

Description

Fields

X: VectorFloat;

The coordinate in 3D space.

Y: VectorFloat;

The coordinate in 3D space.

Z: VectorFloat;

The coordinate in 3D space.

W: VectorFloat;

Homogeneous transform coordinate, mostly used for perspective projection. Typically, this component is set to 1.0.

Methods

function GetXYZ: TVector3f; inline;

Returns (X, Y, Z) portion of 4D vector.

function Lerp(const Vector: TVector4f; const Theta: VectorFloat): TVector4f;

Interpolates between current and the specified 4D vector.

Parameters
Vector
The destination vector to be used in the interpolation
Theta
The mixture of the two vectors with the a range of [0..1].
function ProjectToXYZ: TVector3f;

Returns (X, Y, Z) portion of current 4D (3D + W) vector, projecting to W = 1 whenever necessary.


Copyright © 2000 - 2017 Yuriy Kotsarenko. Help files generated by PasDoc.