Class TSingleList

Unit

Declaration

type TSingleList = class(specialize TStructList<Single>)

Description

No description available, ancestor TStructList description follows

List of structures. This is just TList class from Generics.Collections, with some useful helpers.

Hierarchy

Overview

Methods

Public procedure AppendFloats(Floats: TFloatList);
Public function ToDouble: TDoubleList;
Public procedure Assign(const Source: TDoubleList); overload;
Public procedure AssignLerpRange(const Fraction: Single; const V1, V2: specialize TStructList<Single>; const Index1, Index2, ACount: TListSize); override;
Public procedure AddListRange(const Source: TSingleList; const Index, AddCount: TListSize); deprecated 'use AddSubRange';
Public function Equals(SecondValue: TObject): boolean; override;
Public function Sum: Single;
Public procedure MultiplyAll(const Factor: Single);
Public procedure SortAndRemoveDuplicates;

Description

Methods

Public procedure AppendFloats(Floats: TFloatList);
 
Public function ToDouble: TDoubleList;
 
Public procedure Assign(const Source: TDoubleList); overload;

Assign value from TDoubleList, converting to single-precision.

Public procedure AssignLerpRange(const Fraction: Single; const V1, V2: specialize TStructList<Single>; const Index1, Index2, ACount: TListSize); override;
 
Public procedure AddListRange(const Source: TSingleList; const Index, AddCount: TListSize); deprecated 'use AddSubRange';

Warning: this symbol is deprecated: use AddSubRange

 
Public function Equals(SecondValue: TObject): boolean; override;

Does the SecondValue have equal length and content. The values are compared with an Epsilon tolerance, as usual for floating-point values.

Public function Sum: Single;
 
Public procedure MultiplyAll(const Factor: Single);

Multiply all items by Factor.

Public procedure SortAndRemoveDuplicates;

Sort and remove (exact) duplicates. Removal of duplicates is very fast, utilizing the fact that the list is sorted.


Generated by PasDoc 0.16.0.