Class TVector2SingleList

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TVector2SingleList = class(specialize TGenericStructList<TVector2Single>)

Description

no description available, TGenericStructList description follows

Generic list of types that are compared by CompareByte.

This is equivalent to TFPGList, except it doesn't override IndexOf, so your type doesn't need to have a "=" operator built-in inside FPC. When calling IndexOf or Remove, it will simply compare values using CompareByte, this is what TFPSList.IndexOf uses. This way it works to create lists of records, vectors (constant size arrays), old-style TP objects, and also is suitable to create a list of methods (since for methods, the "=" is broken, for Delphi compatibility, see http://bugs.freepascal.org/view.php?id=9228).

We also add some trivial helper methods like Add and L.

Hierarchy

Overview

Methods

Public function MinMax(out Min, Max: TVector2Single): boolean;
Public procedure AssignLerp(const Fraction: Single; V1, V2: TVector2SingleList; Index1, Index2, ACount: Integer);
Public procedure AddList(Source: TVector2SingleList);
Public procedure AddListRange(Source: TVector2SingleList; Index, AddCount: Integer);
Public procedure AddArray(const A: array of TVector2Single);
Public procedure AssignArray(const A: array of TVector2Single);

Description

Methods

Public function MinMax(out Min, Max: TVector2Single): boolean;

Calculate minimum and maximum values for both dimensions of this set of points. Returns False when Count = 0.

Public procedure AssignLerp(const Fraction: Single; V1, V2: TVector2SingleList; Index1, Index2, ACount: Integer);

Assign linear interpolation between two other vector arrays.

See also
TVector3SingleList.AssignLerp
Assign linear interpolation between two other vector arrays.
Public procedure AddList(Source: TVector2SingleList);
 
Public procedure AddListRange(Source: TVector2SingleList; Index, AddCount: Integer);
 
Public procedure AddArray(const A: array of TVector2Single);
 
Public procedure AssignArray(const A: array of TVector2Single);
 

Generated by PasDoc 0.14.0.