Table of Contents

Class

public static class Math
Inheritance
object

Methods

hash(ulong2)

public static ulong hash(ulong2 v)

Parameters

v ulong2

Returns

ulong

hash(ulong4)

public static ulong hash(ulong4 v)

Parameters

v ulong4

Returns

ulong

hashwide(ulong2)

Returns a ulong2 vector hash code of a ulong2 vector. When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash that are only reduced to a narrow uint hash at the very end instead of at every step.

public static ulong2 hashwide(ulong2 v)

Parameters

v ulong2

Vector value to hash.

Returns

ulong2

ulong2 hash of the argument.

hashwide(ulong4)

Returns a ulong4 vector hash code of a ulong4 vector. When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash that are only reduced to a narrow uint hash at the very end instead of at every step.

public static ulong4 hashwide(ulong4 v)

Parameters

v ulong4

Vector value to hash.

Returns

ulong4

ulong4 hash of the argument.

select_shuffle_component(ulong2, ulong2, ShuffleComponent)

private static ulong select_shuffle_component(ulong2 a, ulong2 b, math.ShuffleComponent component)

Parameters

a ulong2
b ulong2
component math.ShuffleComponent

Returns

ulong

select_shuffle_component(ulong4, ulong4, ShuffleComponent)

private static ulong select_shuffle_component(ulong4 a, ulong4 b, math.ShuffleComponent component)

Parameters

a ulong4
b ulong4
component math.ShuffleComponent

Returns

ulong

shuffle(ulong2, ulong2, ShuffleComponent)

Returns the result of specified shuffling of the components from two ulong2 vectors into a uint value.

public static ulong shuffle(ulong2 left, ulong2 right, math.ShuffleComponent x)

Parameters

left ulong2

ulong2 to use as the left argument of the shuffle operation.

right ulong2

ulong2 to use as the right argument of the shuffle operation.

x math.ShuffleComponent

The ShuffleComponent to use when setting the resulting uint.

Returns

ulong

uint result of the shuffle operation.

shuffle(ulong2, ulong2, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two ulong2 vectors into a ulong2 vector.

public static ulong2 shuffle(ulong2 left, ulong2 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

left ulong2

ulong2 to use as the left argument of the shuffle operation.

right ulong2

ulong2 to use as the right argument of the shuffle operation.

x math.ShuffleComponent

The ShuffleComponent to use when setting the resulting ulong2 x component.

y math.ShuffleComponent

The ShuffleComponent to use when setting the resulting ulong2 y component.

Returns

ulong2

ulong2 result of the shuffle operation.

shuffle(ulong2, ulong2, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two ulong2 vectors into a uint4 vector.

public static ulong4 shuffle(ulong2 left, ulong2 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

left ulong2

ulong2 to use as the left argument of the shuffle operation.

right ulong2

ulong2 to use as the right argument of the shuffle operation.

x math.ShuffleComponent

The ShuffleComponent to use when setting the resulting uint4 x component.

y math.ShuffleComponent

The ShuffleComponent to use when setting the resulting uint4 y component.

z math.ShuffleComponent

The ShuffleComponent to use when setting the resulting uint4 z component.

w math.ShuffleComponent

The ShuffleComponent to use when setting the resulting uint4 w component.

Returns

ulong4

uint4 result of the shuffle operation.

shuffle(ulong4, ulong4, ShuffleComponent)

Returns the result of specified shuffling of the components from two ulong4 vectors into a ulong value.

public static ulong shuffle(ulong4 left, ulong4 right, math.ShuffleComponent x)

Parameters

left ulong4

ulong4 to use as the left argument of the shuffle operation.

right ulong4

ulong4 to use as the right argument of the shuffle operation.

x math.ShuffleComponent

The ShuffleComponent to use when setting the resulting ulong.

Returns

ulong

ulong result of the shuffle operation.

shuffle(ulong4, ulong4, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two ulong4 vectors into a ulong2 vector.

public static ulong2 shuffle(ulong4 left, ulong4 right, math.ShuffleComponent x, math.ShuffleComponent y)

Parameters

left ulong4

ulong4 to use as the left argument of the shuffle operation.

right ulong4

ulong4 to use as the right argument of the shuffle operation.

x math.ShuffleComponent

The ShuffleComponent to use when setting the resulting ulong2 x component.

y math.ShuffleComponent

The ShuffleComponent to use when setting the resulting ulong2 y component.

Returns

ulong2

ulong2 result of the shuffle operation.

shuffle(ulong4, ulong4, ShuffleComponent, ShuffleComponent, ShuffleComponent, ShuffleComponent)

Returns the result of specified shuffling of the components from two ulong4 vectors into a ulong4 vector.

public static ulong4 shuffle(ulong4 left, ulong4 right, math.ShuffleComponent x, math.ShuffleComponent y, math.ShuffleComponent z, math.ShuffleComponent w)

Parameters

left ulong4

ulong4 to use as the left argument of the shuffle operation.

right ulong4

ulong4 to use as the right argument of the shuffle operation.

x math.ShuffleComponent

The ShuffleComponent to use when setting the resulting ulong4 x component.

y math.ShuffleComponent

The ShuffleComponent to use when setting the resulting ulong4 y component.

z math.ShuffleComponent

The ShuffleComponent to use when setting the resulting ulong4 z component.

w math.ShuffleComponent

The ShuffleComponent to use when setting the resulting ulong4 w component.

Returns

ulong4

ulong4 result of the shuffle operation.

ulong2(ulong2)

Returns a ulong2 vector constructed from a ulong2 vector.

public static ulong2 ulong2(ulong2 xy)

Parameters

xy ulong2

The constructed vector's xy components will be set to this value.

Returns

ulong2

ulong2 constructed from arguments.

ulong2(bool)

Returns a ulong2 vector constructed from a single bool value by converting it to uint and assigning it to every component.

public static ulong2 ulong2(bool v)

Parameters

v bool

bool to convert to ulong2

Returns

ulong2

Converted value.

ulong2(double)

Returns a ulong2 vector constructed from a single double value by converting it to uint and assigning it to every component.

public static ulong2 ulong2(double v)

Parameters

v double

double to convert to ulong2

Returns

ulong2

Converted value.

ulong2(int)

Returns a ulong2 vector constructed from a single int value by converting it to uint and assigning it to every component.

public static ulong2 ulong2(int v)

Parameters

v int

int to convert to ulong2

Returns

ulong2

Converted value.

ulong2(float)

Returns a ulong2 vector constructed from a single float value by converting it to uint and assigning it to every component.

public static ulong2 ulong2(float v)

Parameters

v float

float to convert to ulong2

Returns

ulong2

Converted value.

ulong2(uint)

Returns a ulong2 vector constructed from a single uint value by assigning it to every component.

public static ulong2 ulong2(uint v)

Parameters

v uint

uint to convert to ulong2

Returns

ulong2

Converted value.

ulong2(uint, uint)

Returns a ulong2 vector constructed from two uint values.

public static ulong2 ulong2(uint x, uint y)

Parameters

x uint

The constructed vector's x component will be set to this value.

y uint

The constructed vector's y component will be set to this value.

Returns

ulong2

ulong2 constructed from arguments.

ulong2(ulong)

public static ulong2 ulong2(ulong v)

Parameters

v ulong

Returns

ulong2

ulong2(ulong, ulong)

public static ulong2 ulong2(ulong x, ulong y)

Parameters

x ulong
y ulong

Returns

ulong2

ulong2(bool2)

Return a ulong2 vector constructed from a bool2 vector by componentwise conversion.

public static ulong2 ulong2(bool2 v)

Parameters

v bool2

bool2 to convert to ulong2

Returns

ulong2

Converted value.

ulong2(double2)

Return a ulong2 vector constructed from a double2 vector by componentwise conversion.

public static ulong2 ulong2(double2 v)

Parameters

v double2

double2 to convert to ulong2

Returns

ulong2

Converted value.

ulong2(float2)

Return a ulong2 vector constructed from a float2 vector by componentwise conversion.

public static ulong2 ulong2(float2 v)

Parameters

v float2

float2 to convert to ulong2

Returns

ulong2

Converted value.

ulong2(int2)

Return a ulong2 vector constructed from a int2 vector by componentwise conversion.

public static ulong2 ulong2(int2 v)

Parameters

v int2

int2 to convert to ulong2

Returns

ulong2

Converted value.

ulong4(ulong2, ulong2)

Returns a ulong4 vector constructed from two uint2 vectors.

public static ulong4 ulong4(ulong2 xy, ulong2 zw)

Parameters

xy ulong2

The constructed vector's xy components will be set to this value.

zw ulong2

The constructed vector's zw components will be set to this value.

Returns

ulong4

ulong4 constructed from arguments.

ulong4(ulong2, ulong, ulong)

Returns a ulong4 vector constructed from a uint2 vector and two uint values.

public static ulong4 ulong4(ulong2 xy, ulong z, ulong w)

Parameters

xy ulong2

The constructed vector's xy components will be set to this value.

z ulong

The constructed vector's z component will be set to this value.

w ulong

The constructed vector's w component will be set to this value.

Returns

ulong4

ulong4 constructed from arguments.

ulong4(ulong4)

Returns a ulong4 vector constructed from a ulong4 vector.

public static ulong4 ulong4(ulong4 xyzw)

Parameters

xyzw ulong4

The constructed vector's xyzw components will be set to this value.

Returns

ulong4

ulong4 constructed from arguments.

ulong4(bool)

Returns a ulong4 vector constructed from a single bool value by converting it to uint and assigning it to every component.

public static ulong4 ulong4(bool v)

Parameters

v bool

bool to convert to ulong4

Returns

ulong4

Converted value.

ulong4(double)

Returns a ulong4 vector constructed from a single double value by converting it to uint and assigning it to every component.

public static ulong4 ulong4(double v)

Parameters

v double

double to convert to ulong4

Returns

ulong4

Converted value.

ulong4(int)

Returns a ulong4 vector constructed from a single int value by converting it to uint and assigning it to every component.

public static ulong4 ulong4(int v)

Parameters

v int

int to convert to ulong4

Returns

ulong4

Converted value.

ulong4(long)

public static ulong4 ulong4(long v)

Parameters

v long

Returns

ulong4

ulong4(float)

Returns a ulong4 vector constructed from a single float value by converting it to uint and assigning it to every component.

public static ulong4 ulong4(float v)

Parameters

v float

float to convert to ulong4

Returns

ulong4

Converted value.

ulong4(uint)

Returns a ulong4 vector constructed from a single uint value by assigning it to every component.

public static ulong4 ulong4(uint v)

Parameters

v uint

uint to convert to ulong4

Returns

ulong4

Converted value.

ulong4(ulong)

public static ulong4 ulong4(ulong v)

Parameters

v ulong

Returns

ulong4

ulong4(ulong, ulong2, ulong)

Returns a ulong4 vector constructed from a uint value, a uint2 vector and a uint value.

public static ulong4 ulong4(ulong x, ulong2 yz, ulong w)

Parameters

x ulong

The constructed vector's x component will be set to this value.

yz ulong2

The constructed vector's yz components will be set to this value.

w ulong

The constructed vector's w component will be set to this value.

Returns

ulong4

ulong4 constructed from arguments.

ulong4(ulong, ulong, ulong2)

Returns a ulong4 vector constructed from two uint values and a uint2 vector.

public static ulong4 ulong4(ulong x, ulong y, ulong2 zw)

Parameters

x ulong

The constructed vector's x component will be set to this value.

y ulong

The constructed vector's y component will be set to this value.

zw ulong2

The constructed vector's zw components will be set to this value.

Returns

ulong4

ulong4 constructed from arguments.

ulong4(ulong, ulong, ulong, ulong)

public static ulong4 ulong4(ulong x, ulong y, ulong z, ulong w)

Parameters

x ulong
y ulong
z ulong
w ulong

Returns

ulong4

ulong4(bool4)

Return a ulong4 vector constructed from a bool4 vector by componentwise conversion.

public static ulong4 ulong4(bool4 v)

Parameters

v bool4

bool4 to convert to ulong4

Returns

ulong4

Converted value.

ulong4(double4)

Return a ulong4 vector constructed from a double4 vector by componentwise conversion.

public static ulong4 ulong4(double4 v)

Parameters

v double4

double4 to convert to ulong4

Returns

ulong4

Converted value.

ulong4(float4)

Return a ulong4 vector constructed from a float4 vector by componentwise conversion.

public static ulong4 ulong4(float4 v)

Parameters

v float4

float4 to convert to ulong4

Returns

ulong4

Converted value.

ulong4(int4)

Return a ulong4 vector constructed from a int4 vector by componentwise conversion.

public static ulong4 ulong4(int4 v)

Parameters

v int4

int4 to convert to ulong4

Returns

ulong4

Converted value.

ulong4(uint4)

Return a ulong4 vector constructed from a uint4 vector by componentwise conversion.

public static ulong4 ulong4(uint4 v)

Parameters

v uint4

uint4 to convert to ulong4

Returns

ulong4

Converted value.