Packed Record TVector2Integer

Unit

Declaration

type TVector2Integer = packed record

Description

Vector of 2 Integer values.

See also
TVector3Integer
Vector of 3 Integer values.

Overview

Nested Types

Public TIndex = 0..1;

Fields

Public var X: Integer;
Public var Y: Integer;

Methods

Public class operator + (const A, B: TVector2Integer): TVector2Integer; inline;
Public class operator - (const A, B: TVector2Integer): TVector2Integer; inline;
Public class operator - (const V: TVector2Integer): TVector2Integer; inline;
Public function ToString: string;
Public function IsZero: boolean; inline;
Public class function Equals(const V1, V2: TVector2Integer): boolean; static; inline;
Public class function Zero: TVector2Integer; static; inline;

Properties

Public property Data [constIndex:TIndex]: Integer read GetItems write SetItems; deprecated 'use instead X, Y fields';
Public property AsArray [constIndex:TIndex]: Integer read GetItems;
Public property Items [constIndex:TIndex]: Integer read GetItems write SetItems; deprecated 'use instead X, Y fields';

Description

Nested Types

Public TIndex = 0..1;
 

Fields

Public var X: Integer;
 
Public var Y: Integer;
 

Methods

Public class operator + (const A, B: TVector2Integer): TVector2Integer; inline;
 
Public class operator - (const A, B: TVector2Integer): TVector2Integer; inline;
 
Public class operator - (const V: TVector2Integer): TVector2Integer; inline;
 
Public function ToString: string;
 
Public function IsZero: boolean; inline;
 
Public class function Equals(const V1, V2: TVector2Integer): boolean; static; inline;
 
Public class function Zero: TVector2Integer; static; inline;
 

Properties

Public property Data [constIndex:TIndex]: Integer read GetItems write SetItems; deprecated 'use instead X, Y fields';

Warning: this symbol is deprecated: use instead X, Y fields

Access (get, set) vector components by index. We discourage using it. Use X, Y to change vector components. Use AsArray to access it by index, read-only.

Public property AsArray [constIndex:TIndex]: Integer read GetItems;

Get vector components by index.

Public property Items [constIndex:TIndex]: Integer read GetItems write SetItems; deprecated 'use instead X, Y fields';

Warning: this symbol is deprecated: use instead X, Y fields

 

Generated by PasDoc 0.16.0.