Packed Record TVector2Byte
Unit
Declaration
type TVector2Byte = packed record
Description
Vector of 2 Byte values.
See also
- TVector3Byte
 - Vector of 3 Byte values.
 
Overview
Nested Types
![]()  | 
TIndex = 0..1; | 
Fields
![]()  | 
X: Byte | 
![]()  | 
Y: Byte | 
![]()  | 
Data: array [TIndex] of Byte | 
Methods
![]()  | 
class operator + (const A, B: TVector2Byte): TVector2Byte; inline; | 
![]()  | 
class operator - (const A, B: TVector2Byte): TVector2Byte; inline; | 
![]()  | 
class operator - (const V: TVector2Byte): TVector2Byte; inline; | 
![]()  | 
function ToString: string; | 
![]()  | 
function IsZero: boolean; inline; | 
![]()  | 
class function Equals(const V1, V2: TVector2Byte): boolean; static; inline; | 
![]()  | 
class function Zero: TVector2Byte; static; inline; | 
Properties
![]()  | 
property AsArray [const Index: TIndex]: Byte read GetItems; | 
Description
Nested Types
![]()  | 
TIndex = 0..1; | 
| 
 This item has no description.  | |
Fields
![]()  | 
X: Byte | 
| 
 This item has no description.  | |
![]()  | 
Y: Byte | 
| 
 This item has no description.  | |
![]()  | 
Data: array [TIndex] of Byte | 
| 
 This item has no description.  | |
Methods
![]()  | 
class operator + (const A, B: TVector2Byte): TVector2Byte; inline; | 
| 
 This item has no description.  | |
![]()  | 
class operator - (const A, B: TVector2Byte): TVector2Byte; inline; | 
| 
 This item has no description.  | |
![]()  | 
class operator - (const V: TVector2Byte): TVector2Byte; inline; | 
| 
 This item has no description.  | |
![]()  | 
function ToString: string; | 
| 
 This item has no description.  | |
![]()  | 
function IsZero: boolean; inline; | 
| 
 This item has no description.  | |
![]()  | 
class function Equals(const V1, V2: TVector2Byte): boolean; static; inline; | 
| 
 This item has no description.  | |
![]()  | 
class function Zero: TVector2Byte; static; inline; | 
| 
 This item has no description.  | |
Properties
![]()  | 
property AsArray [const Index: TIndex]: Byte read GetItems; | 
| 
 
Get vector components by index. This is a default property, so you can write  But note that this is not writeable (because exposing writeable properties on vectors would cause some subtle traps, see https://castle-engine.io/coding_traps ). Use   | |
Generated by PasDoc 0.16.0-snapshot.
