int2

Description

struct Tinman.Gpu.Types.int2

The built-in type int2.

Public / Constructors

int2


public constructor int2 → (2)

in : int32

The vector component x.

in : int32

The vector component y.

Creates a new vector value.

Public / Operators

operator /

2 overloads


public static operator /1 → (2)

in : int2

The first vector value.

in : int2

The second vector value.

returns → int2

The resulting vector value.

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


public static operator /2 → (2)

in : int2

The vector value.

in : int32

The scalar value.

returns → int2

The resulting vector value.

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

operator -

3 overloads


public static operator -1 → (2)

in : int2

The first vector value.

in : int2

The second vector value.

returns → int2

The resulting vector value.

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


public static operator -2 → (2)

in : int2

The vector value.

in : int32

The scalar value.

returns → int2

The resulting vector value.

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


public static operator -3 → (1)

in : int2

The vector value.

returns → int2

The resulting vector value.

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

operator *

2 overloads


public static operator *1 → (2)

in : int2

The first vector value.

in : int2

The second vector value.

returns → int2

The resulting vector value.

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


public static operator *2 → (2)

in : int2

The vector value.

in : int32

The scalar value.

returns → int2

The resulting vector value.

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

operator +

2 overloads


public static operator +1 → (2)

in : int2

The first vector value.

in : int2

The second vector value.

returns → int2

The resulting vector value.

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


public static operator +2 → (2)

in : int2

The vector value.

in : int32

The scalar value.

returns → int2

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 : int32

The vector component value.

Returns the index in-th component of this vector.

Public / Attributes

g


public attribute g → (get,set)

value : int32

The vector component value.

Accesses the vector component y by its alternate name g.

gr


public attribute gr → (get,set)

value : int2

The swizzled vector component tuple.

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

r


public attribute r → (get,set)

value : int32

The vector component value.

Accesses the vector component x by its alternate name r.

rg


public attribute rg → (get,set)

value : int2

The swizzled vector component tuple.

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

x


public attribute x → (int32)

The vector component x.

xy


public attribute xy → (get,set)

value : int2

The swizzled vector component tuple.

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

y


public attribute y → (int32)

The vector component y.

yx


public attribute yx → (get,set)

value : int2

The swizzled vector component tuple.

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