Packed Record TVector3Byte

Unit

Declaration

type TVector3Byte = packed record

Description

Vector of 3 Byte values.

Overview

Nested Types

Public TIndex = 0..2;

Fields

Public X: Byte
Public Y: Byte
Public Z: Byte
Public Data: array [TIndex] of Byte
Public XY: TVector2Byte

Methods

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

Properties

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

Description

Nested Types

Public TIndex = 0..2;

This item has no description.

Fields

Public X: Byte

This item has no description.

Public Y: Byte

This item has no description.

Public Z: Byte

This item has no description.

Public Data: array [TIndex] of Byte

This item has no description.

Public XY: TVector2Byte

This item has no description.

Methods

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

This item has no description.

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

This item has no description.

Public class operator - (const V: TVector3Byte): TVector3Byte; 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: TVector3Byte): boolean; static; inline;

This item has no description.

Public class function Zero: TVector3Byte; static; inline;

This item has no description.

Properties

Public property AsArray [const Index: TIndex]: Byte 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.