Record TVector4Cardinal

Unit

Declaration

type TVector4Cardinal = record

Description

Vector of 4 Cardinal values.

Overview

Nested Types

Public TIndex = 0..3;

Fields

Public X: Cardinal
Public Y: Cardinal
Public Z: Cardinal
Public W: Cardinal
Public Data: array [TIndex] of Cardinal
Public XY: TVector2Cardinal;
Public ZW: Cardinal
Public XYZ: TVector3Cardinal

Methods

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

Properties

Public property AsArray [const Index: TIndex]: Cardinal read GetItems;

Description

Nested Types

Public TIndex = 0..3;

This item has no description.

Fields

Public X: Cardinal

This item has no description.

Public Y: Cardinal

This item has no description.

Public Z: Cardinal

This item has no description.

Public W: Cardinal

This item has no description.

Public Data: array [TIndex] of Cardinal

This item has no description.

Public XY: TVector2Cardinal;

This item has no description.

Public ZW: Cardinal

This item has no description.

Public XYZ: TVector3Cardinal

This item has no description.

Methods

Public class operator + (const A, B: TVector4Cardinal): TVector4Cardinal; inline;

This item has no description.

Public class operator - (const A, B: TVector4Cardinal): TVector4Cardinal; inline;

This item has no description.

Public class operator - (const V: TVector4Cardinal): TVector4Cardinal; inline;

This item has no description.

Public function ToString: string;

This item has no description.

Public function IsZero: boolean; inline;

This item has no description.

Public class function Equals(const V1, V2: TVector4Cardinal): boolean; static; inline;

This item has no description.

Public class function Zero: TVector4Cardinal; static; inline;

This item has no description.

Properties

Public property AsArray [const Index: TIndex]: Cardinal read GetItems;

Get vector components by index. This is a default property, so you can write MyVector[0] instead of MyVector.Data[0] or MyVector.AsArray[0].

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 MyVector.Data[0] := 123 if you want to set by index, or MyVector.X := 123.


Generated by PasDoc 0.16.0-snapshot.