Packed Record TVector4Byte

Unit

Declaration

type TVector4Byte = packed record

Description

Vector of 4 Byte values.

Source: base/castlevectors_byte.inc (line 105).

Overview

Nested Types

Public TIndex = 0..3;

Fields

Public X: Byte
Public Y: Byte
Public Z: Byte
Public W: Byte
Public Data: array [TIndex] of Byte
Public XY: TVector2Byte;
Public ZW: TVector2Byte
Public XYZ: TVector3Byte

Methods

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

Properties

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

Description

Nested Types

Public TIndex = 0..3;

This item has no description.

Source: base/castlevectors_byte.inc (line 105).

Fields

Public X: Byte

This item has no description.

Source: base/castlevectors_byte.inc (line 140).

Public Y: Byte

This item has no description.

Source: base/castlevectors_byte.inc (line 140).

Public Z: Byte

This item has no description.

Source: base/castlevectors_byte.inc (line 140).

Public W: Byte

This item has no description.

Source: base/castlevectors_byte.inc (line 140).

Public Data: array [TIndex] of Byte

This item has no description.

Source: base/castlevectors_byte.inc (line 141).

Public XY: TVector2Byte;

This item has no description.

Source: base/castlevectors_byte.inc (line 142).

Public ZW: TVector2Byte

This item has no description.

Source: base/castlevectors_byte.inc (line 142).

Public XYZ: TVector3Byte

This item has no description.

Source: base/castlevectors_byte.inc (line 143).

Methods

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

This item has no description.

Source: base/castlevectors_byte.inc (line 128).

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

This item has no description.

Source: base/castlevectors_byte.inc (line 129).

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

This item has no description.

Source: base/castlevectors_byte.inc (line 130).

Public function ToString: string;

This item has no description.

Source: base/castlevectors_byte.inc (line 132).

Public function IsZero: boolean; inline;

This item has no description.

Source: base/castlevectors_byte.inc (line 134).

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

This item has no description.

Source: base/castlevectors_byte.inc (line 135).

Public class function Zero: TVector4Byte; static;

This item has no description.

Source: base/castlevectors_byte.inc (line 137).

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.

Source: base/castlevectors_byte.inc (line 121).


Generated by PasDoc 0.17.0.snapshot.