Class TVector2SingleList
Unit
CastleVectors
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
Description
Methods
 |
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.
|
 |
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.
|
|