float4

Description

struct Tinman.Gpu.Types.float4

The built-in type float4.

Public / Constructors

float4

5 overloads


public constructor float41 → (3)

in : float2

The vector components x and y.

in : float32

The vector component z.

in : float32

The vector component w.

Creates a new vector value.


public constructor float42 → (2)

in : float2

The vector components x and y.

in : float2

The vector components z and w.

Creates a new vector value.


public constructor float43 → (2)

in : float32

The vector component x.

in : float3

The vector components y, z and w.

Creates a new vector value.


public constructor float44 → (2)

in : float3

The vector components x, y and z.

in : float32

The vector component w.

Creates a new vector value.


public constructor float45 → (4)

in : float32

The vector component x.

in : float32

The vector component y.

in : float32

The vector component z.

in : float32

The vector component w.

Creates a new vector value.

Public / Operators

operator /

2 overloads


public static operator /1 → (2)

in : float4

The first vector value.

in : float4

The second vector value.

returns → float4

The resulting vector value.

Applies the / operator to the components of the given vectors.


public static operator /2 → (2)

in : float4

The vector value.

in : float32

The scalar value.

returns → float4

The resulting vector value.

Applies the / operator to each component of the given vector.

operator -

3 overloads


public static operator -1 → (2)

in : float4

The first vector value.

in : float4

The second vector value.

returns → float4

The resulting vector value.

Applies the - operator to the components of the given vectors.


public static operator -2 → (2)

in : float4

The vector value.

in : float32

The scalar value.

returns → float4

The resulting vector value.

Applies the - operator to each component of the given vector.


public static operator -3 → (1)

in : float4

The vector value.

returns → float4

The resulting vector value.

Applies the - operator to each component of the given vector.

operator *

2 overloads


public static operator *1 → (2)

in : float4

The first vector value.

in : float4

The second vector value.

returns → float4

The resulting vector value.

Applies the * operator to the components of the given vectors.


public static operator *2 → (2)

in : float4

The vector value.

in : float32

The scalar value.

returns → float4

The resulting vector value.

Applies the * operator to each component of the given vector.

operator +

2 overloads


public static operator +1 → (2)

in : float4

The first vector value.

in : float4

The second vector value.

returns → float4

The resulting vector value.

Applies the + operator to the components of the given vectors.


public static operator +2 → (2)

in : float4

The vector value.

in : float32

The scalar value.

returns → float4

The resulting vector value.

Applies the + operator to each component of the given vector.

operator []


public operator [] → (get,set)

index : int32

The zero-based vector component index.

value : float32

The vector component value.

Returns the index in-th component of this vector.

Public / Attributes

a


public attribute a → (get,set)

value : float32

The vector component value.

Accesses the vector component w by its alternate name a.

ab


public attribute ab → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,z) tuple.

abg


public attribute abg → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,z,y) tuple.

abgr


public attribute abgr → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,z,y,x) tuple.

abr


public attribute abr → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,z,x) tuple.

abrg


public attribute abrg → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,z,x,y) tuple.

ag


public attribute ag → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,y) tuple.

agb


public attribute agb → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,y,z) tuple.

agbr


public attribute agbr → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,y,z,x) tuple.

agr


public attribute agr → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,y,x) tuple.

agrb


public attribute agrb → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,y,x,z) tuple.

ar


public attribute ar → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,x) tuple.

arb


public attribute arb → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,x,z) tuple.

arbg


public attribute arbg → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,x,z,y) tuple.

arg


public attribute arg → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,x,y) tuple.

argb


public attribute argb → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,x,y,z) tuple.

b


public attribute b → (get,set)

value : float32

The vector component value.

Accesses the vector component z by its alternate name b.

ba


public attribute ba → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,w) tuple.

bag


public attribute bag → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,w,y) tuple.

bagr


public attribute bagr → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,w,y,x) tuple.

bar


public attribute bar → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,w,x) tuple.

barg


public attribute barg → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,w,x,y) tuple.

bg


public attribute bg → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,y) tuple.

bga


public attribute bga → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,y,w) tuple.

bgar


public attribute bgar → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,y,w,x) tuple.

bgr


public attribute bgr → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,y,x) tuple.

bgra


public attribute bgra → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,y,x,w) tuple.

br


public attribute br → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,x) tuple.

bra


public attribute bra → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,x,w) tuple.

brag


public attribute brag → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,x,w,y) tuple.

brg


public attribute brg → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,x,y) tuple.

brga


public attribute brga → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,x,y,w) tuple.

g


public attribute g → (get,set)

value : float32

The vector component value.

Accesses the vector component y by its alternate name g.

ga


public attribute ga → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,w) tuple.

gab


public attribute gab → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,w,z) tuple.

gabr


public attribute gabr → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,w,z,x) tuple.

gar


public attribute gar → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,w,x) tuple.

garb


public attribute garb → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,w,x,z) tuple.

gb


public attribute gb → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,z) tuple.

gba


public attribute gba → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,z,w) tuple.

gbar


public attribute gbar → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,z,w,x) tuple.

gbr


public attribute gbr → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,z,x) tuple.

gbra


public attribute gbra → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,z,x,w) tuple.

gr


public attribute gr → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,x) tuple.

gra


public attribute gra → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,x,w) tuple.

grab


public attribute grab → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,x,w,z) tuple.

grb


public attribute grb → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,x,z) tuple.

grba


public attribute grba → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,x,z,w) tuple.

r


public attribute r → (get,set)

value : float32

The vector component value.

Accesses the vector component x by its alternate name r.

ra


public attribute ra → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,w) tuple.

rab


public attribute rab → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,w,z) tuple.

rabg


public attribute rabg → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,w,z,y) tuple.

rag


public attribute rag → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,w,y) tuple.

ragb


public attribute ragb → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,w,y,z) tuple.

rb


public attribute rb → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,z) tuple.

rba


public attribute rba → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,z,w) tuple.

rbag


public attribute rbag → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,z,w,y) tuple.

rbg


public attribute rbg → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,z,y) tuple.

rbga


public attribute rbga → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,z,y,w) tuple.

rg


public attribute rg → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,y) tuple.

rga


public attribute rga → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,y,w) tuple.

rgab


public attribute rgab → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,y,w,z) tuple.

rgb


public attribute rgb → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,y,z) tuple.

rgba


public attribute rgba → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,y,z,w) tuple.

w


public attribute w → (float32)

The vector component w.

wx


public attribute wx → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,x) tuple.

wxy


public attribute wxy → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,x,y) tuple.

wxyz


public attribute wxyz → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,x,y,z) tuple.

wxz


public attribute wxz → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,x,z) tuple.

wxzy


public attribute wxzy → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,x,z,y) tuple.

wy


public attribute wy → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,y) tuple.

wyx


public attribute wyx → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,y,x) tuple.

wyxz


public attribute wyxz → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,y,x,z) tuple.

wyz


public attribute wyz → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,y,z) tuple.

wyzx


public attribute wyzx → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,y,z,x) tuple.

wz


public attribute wz → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,z) tuple.

wzx


public attribute wzx → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,z,x) tuple.

wzxy


public attribute wzxy → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,z,x,y) tuple.

wzy


public attribute wzy → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,z,y) tuple.

wzyx


public attribute wzyx → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (w,z,y,x) tuple.

x


public attribute x → (float32)

The vector component x.

xw


public attribute xw → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,w) tuple.

xwy


public attribute xwy → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,w,y) tuple.

xwyz


public attribute xwyz → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,w,y,z) tuple.

xwz


public attribute xwz → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,w,z) tuple.

xwzy


public attribute xwzy → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,w,z,y) tuple.

xy


public attribute xy → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,y) tuple.

xyw


public attribute xyw → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,y,w) tuple.

xywz


public attribute xywz → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,y,w,z) tuple.

xyz


public attribute xyz → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,y,z) tuple.

xyzw


public attribute xyzw → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,y,z,w) tuple.

xz


public attribute xz → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,z) tuple.

xzw


public attribute xzw → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,z,w) tuple.

xzwy


public attribute xzwy → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,z,w,y) tuple.

xzy


public attribute xzy → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,z,y) tuple.

xzyw


public attribute xzyw → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,z,y,w) tuple.

y


public attribute y → (float32)

The vector component y.

yw


public attribute yw → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,w) tuple.

ywx


public attribute ywx → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,w,x) tuple.

ywxz


public attribute ywxz → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,w,x,z) tuple.

ywz


public attribute ywz → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,w,z) tuple.

ywzx


public attribute ywzx → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,w,z,x) tuple.

yx


public attribute yx → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,x) tuple.

yxw


public attribute yxw → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,x,w) tuple.

yxwz


public attribute yxwz → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,x,w,z) tuple.

yxz


public attribute yxz → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,x,z) tuple.

yxzw


public attribute yxzw → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,x,z,w) tuple.

yz


public attribute yz → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,z) tuple.

yzw


public attribute yzw → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,z,w) tuple.

yzwx


public attribute yzwx → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,z,w,x) tuple.

yzx


public attribute yzx → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,z,x) tuple.

yzxw


public attribute yzxw → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,z,x,w) tuple.

z


public attribute z → (float32)

The vector component z.

zw


public attribute zw → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,w) tuple.

zwx


public attribute zwx → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,w,x) tuple.

zwxy


public attribute zwxy → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,w,x,y) tuple.

zwy


public attribute zwy → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,w,y) tuple.

zwyx


public attribute zwyx → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,w,y,x) tuple.

zx


public attribute zx → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,x) tuple.

zxw


public attribute zxw → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,x,w) tuple.

zxwy


public attribute zxwy → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,x,w,y) tuple.

zxy


public attribute zxy → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,x,y) tuple.

zxyw


public attribute zxyw → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,x,y,w) tuple.

zy


public attribute zy → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,y) tuple.

zyw


public attribute zyw → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,y,w) tuple.

zywx


public attribute zywx → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,y,w,x) tuple.

zyx


public attribute zyx → (get,set)

value : float3

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,y,x) tuple.

zyxw


public attribute zyxw → (get,set)

value : float4

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,y,x,w) tuple.