Vector Types

Graphics32 currently uses a relative vector system, meaning that a vector have to be applied to a given absolute vector. The relative system propose a wider flexibility, but also a small overhead (the two additions needed). Future versions may introduce a relative/absolute distinction in relevant routines. To make a vector absolute, simply apply actual absolute vertices, but keep in mind that some implementations may expect relative vectors (e.g. TRemapTransformation.Vectormap uses relative vectors).

Vector types are defined with following structures:

TFloatVector

type TFloatVector = TFloatPoint;

type PFloatVector = ^TFloatVector;

Provides convenient naming, and compatibility with TFloatPoint.

TFixedVector

type TFloatVector = TFixedPoint;

type PFloatVector = ^TFloatVector;

Provides convenient naming, and compatibility with TFixedPoint.

TArrayOfFloatPoint

type TArrayOfFloatVector = array of TFloatVector;

type PArrayOfFloatVector = ^TArrayOfFloatVector;

A dynamic array of TFloatVector.

TArrayOfFixedPoint

type TArrayOfFixedVector = array of TFixedVector;

type PArrayOfFixedVector = ^TArrayOfFixedVector;

A dynamic array of TFixedVector.

See Also

Creating Points, TVectorMap