float3

Description

struct Tinman.Gpu.Types.float3

The built-in type float3.

Public / Constructors

float3

3 overloads


public constructor float31 → (2)

in : float32

The vector component x.

in : float2

The vector components y and z.

Creates a new vector value.


public constructor float32 → (2)

in : float2

The vector components x and y.

in : float32

The vector component z.

Creates a new vector value.


public constructor float33 → (3)

in : float32

The vector component x.

in : float32

The vector component y.

in : float32

The vector component z.

Creates a new vector value.

Public / Operators

operator /

2 overloads


public static operator /1 → (2)

in : float3

The first vector value.

in : float3

The second vector value.

returns → float3

The resulting vector value.

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


public static operator /2 → (2)

in : float3

The vector value.

in : float32

The scalar value.

returns → float3

The resulting vector value.

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

operator -

3 overloads


public static operator -1 → (2)

in : float3

The first vector value.

in : float3

The second vector value.

returns → float3

The resulting vector value.

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


public static operator -2 → (2)

in : float3

The vector value.

in : float32

The scalar value.

returns → float3

The resulting vector value.

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


public static operator -3 → (1)

in : float3

The vector value.

returns → float3

The resulting vector value.

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

operator *

2 overloads


public static operator *1 → (2)

in : float3

The first vector value.

in : float3

The second vector value.

returns → float3

The resulting vector value.

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


public static operator *2 → (2)

in : float3

The vector value.

in : float32

The scalar value.

returns → float3

The resulting vector value.

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

operator +

2 overloads


public static operator +1 → (2)

in : float3

The first vector value.

in : float3

The second vector value.

returns → float3

The resulting vector value.

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


public static operator +2 → (2)

in : float3

The vector value.

in : float32

The scalar value.

returns → float3

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

b


public attribute b → (get,set)

value : float32

The vector component value.

Accesses the vector component z by its alternate name b.

bg


public attribute bg → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,y) 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.

br


public attribute br → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,x) 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.

g


public attribute g → (get,set)

value : float32

The vector component value.

Accesses the vector component y by its alternate name g.

gb


public attribute gb → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,z) 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.

gr


public attribute gr → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,x) 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.

r


public attribute r → (get,set)

value : float32

The vector component value.

Accesses the vector component x by its alternate name r.

rb


public attribute rb → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,z) 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.

rg


public attribute rg → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,y) 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.

x


public attribute x → (float32)

The vector component x.

xy


public attribute xy → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,y) 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.

xz


public attribute xz → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (x,z) 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.

y


public attribute y → (float32)

The vector component y.

yx


public attribute yx → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,x) 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.

yz


public attribute yz → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (y,z) 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.

z


public attribute z → (float32)

The vector component z.

zx


public attribute zx → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,x) 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.

zy


public attribute zy → (get,set)

value : float2

The swizzled vector component tuple.

Accesses the vector components as a swizzled (z,y) 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.