record _TVector4Helper

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type _TVector4Helper = record helper for TVector4

Description

Adds common constants of type TVector4

Overview

Fields

internal const Zero : TVector4 = (X: 0; Y: 0; Z: 0; W: 0);
internal const One : TVector4 = (X: 1; Y: 1; Z: 1; W: 1);
internal const UnitX: TVector4 = (X: 1; Y: 0; Z: 0; W: 0);
internal const UnitY: TVector4 = (X: 0; Y: 1; Z: 0; W: 0);
internal const UnitZ: TVector4 = (X: 0; Y: 0; Z: 1; W: 0);
internal const UnitW: TVector4 = (X: 0; Y: 0; Z: 0; W: 1);

Methods

function Floor: TIVector4; inline;
function Ceiling: TIVector4; inline;
function Truncate: TIVector4; inline;
function Round: TIVector4; inline;

Description

Fields

internal const Zero : TVector4 = (X: 0; Y: 0; Z: 0; W: 0);
 
internal const One : TVector4 = (X: 1; Y: 1; Z: 1; W: 1);
 
internal const UnitX: TVector4 = (X: 1; Y: 0; Z: 0; W: 0);
 
internal const UnitY: TVector4 = (X: 0; Y: 1; Z: 0; W: 0);
 
internal const UnitZ: TVector4 = (X: 0; Y: 0; Z: 1; W: 0);
 
internal const UnitW: TVector4 = (X: 0; Y: 0; Z: 0; W: 1);
 

Methods

function Floor: TIVector4; inline;

Rounds the components of the vector towards negative infinity.

Returns

The rounded vector.

function Ceiling: TIVector4; inline;

Rounds the components of the vector towards positive infinity.

Returns

The rounded vector.

function Truncate: TIVector4; inline;

Rounds the components of the vector towards 0.

Returns

The rounded vector.

function Round: TIVector4; inline;

Rounds the components of the vector towards the nearest integer.

If a component is exactly between two integer values (if the fraction is 0.5), then it is set to the even number

Returns

The rounded vector.


Generated by PasDocEx, based on PasDoc 0.14.0.