Class
- Namespace
- CoreFramework.Mathematics
public static class Math
- Inheritance
-
object
Methods
hash(ulong2)
public static ulong hash(ulong2 v)
Parameters
vulong2
Returns
- ulong
hash(ulong4)
public static ulong hash(ulong4 v)
Parameters
vulong4
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
vulong2Vector 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
vulong4Vector 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
Returns
- ulong
select_shuffle_component(ulong4, ulong4, ShuffleComponent)
private static ulong select_shuffle_component(ulong4 a, ulong4 b, math.ShuffleComponent component)
Parameters
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
leftulong2ulong2 to use as the left argument of the shuffle operation.
rightulong2ulong2 to use as the right argument of the shuffle operation.
xmath.ShuffleComponentThe 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
leftulong2ulong2 to use as the left argument of the shuffle operation.
rightulong2ulong2 to use as the right argument of the shuffle operation.
xmath.ShuffleComponentThe ShuffleComponent to use when setting the resulting ulong2 x component.
ymath.ShuffleComponentThe 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
leftulong2ulong2 to use as the left argument of the shuffle operation.
rightulong2ulong2 to use as the right argument of the shuffle operation.
xmath.ShuffleComponentThe ShuffleComponent to use when setting the resulting uint4 x component.
ymath.ShuffleComponentThe ShuffleComponent to use when setting the resulting uint4 y component.
zmath.ShuffleComponentThe ShuffleComponent to use when setting the resulting uint4 z component.
wmath.ShuffleComponentThe 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
leftulong4ulong4 to use as the left argument of the shuffle operation.
rightulong4ulong4 to use as the right argument of the shuffle operation.
xmath.ShuffleComponentThe 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
leftulong4ulong4 to use as the left argument of the shuffle operation.
rightulong4ulong4 to use as the right argument of the shuffle operation.
xmath.ShuffleComponentThe ShuffleComponent to use when setting the resulting ulong2 x component.
ymath.ShuffleComponentThe 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
leftulong4ulong4 to use as the left argument of the shuffle operation.
rightulong4ulong4 to use as the right argument of the shuffle operation.
xmath.ShuffleComponentThe ShuffleComponent to use when setting the resulting ulong4 x component.
ymath.ShuffleComponentThe ShuffleComponent to use when setting the resulting ulong4 y component.
zmath.ShuffleComponentThe ShuffleComponent to use when setting the resulting ulong4 z component.
wmath.ShuffleComponentThe 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
xyulong2The 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
vboolbool 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
vdoubledouble 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
vintint 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
vfloatfloat 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
vuintuint 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
xuintThe constructed vector's x component will be set to this value.
yuintThe 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
vulong
Returns
ulong2(ulong, ulong)
public static ulong2 ulong2(ulong x, ulong y)
Parameters
xulongyulong
Returns
ulong2(bool2)
Return a ulong2 vector constructed from a bool2 vector by componentwise conversion.
public static ulong2 ulong2(bool2 v)
Parameters
vbool2bool2 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
vdouble2double2 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
vfloat2float2 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
vint2int2 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
xyulong2The constructed vector's xy components will be set to this value.
zwulong2The 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
xyulong2The constructed vector's xy components will be set to this value.
zulongThe constructed vector's z component will be set to this value.
wulongThe 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
xyzwulong4The 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
vboolbool 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
vdoubledouble 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
vintint to convert to ulong4
Returns
- ulong4
Converted value.
ulong4(long)
public static ulong4 ulong4(long v)
Parameters
vlong
Returns
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
vfloatfloat 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
vuintuint to convert to ulong4
Returns
- ulong4
Converted value.
ulong4(ulong)
public static ulong4 ulong4(ulong v)
Parameters
vulong
Returns
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
xulongThe constructed vector's x component will be set to this value.
yzulong2The constructed vector's yz components will be set to this value.
wulongThe 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
xulongThe constructed vector's x component will be set to this value.
yulongThe constructed vector's y component will be set to this value.
zwulong2The 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
xulongyulongzulongwulong
Returns
ulong4(bool4)
Return a ulong4 vector constructed from a bool4 vector by componentwise conversion.
public static ulong4 ulong4(bool4 v)
Parameters
vbool4bool4 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
vdouble4double4 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
vfloat4float4 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
vint4int4 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
vuint4uint4 to convert to ulong4
Returns
- ulong4
Converted value.