Unigine.Bits32 Struct

Notice
The functions listed below are the members of the Unigine.MathLib namespace.

voidClear ( ) #

Clears the value by setting all components/elements to 0.

• Bits32 v

Return value.

• int v

Return value.

• uint v

Return value.

Bits32operator~ ( Bits32 v ) #

Bitwise negation. Produces a bitwise complement of its operand by reversing each bit.

Arguments

• Bits32 v - Value.

Bits32operator<< ( Bits32 v0, int v1 ) #

Bitwise left shift.

Arguments

• Bits32 v0 - First value.
• int v1 - Second value.

Bits32operator>> ( Bits32 v0, int v1 ) #

Bitwise right shift.

Arguments

• Bits32 v0 - First value.
• int v1 - Second value.

Bits32operator& ( Bits32 v0, Bits32 v1 ) #

Component-wise logical AND operation (conjunction).

Arguments

• Bits32 v0 - First value.
• Bits32 v1 - Second value.

Bits32operator& ( Bits32 v0, uint v1 ) #

Component-wise logical AND operation (conjunction).

Arguments

• Bits32 v0 - First value.
• uint v1 - Second value.

Bits32operator& ( Bits32 v0, int v1 ) #

Component-wise logical AND operation (conjunction).

Arguments

• Bits32 v0 - First value.
• int v1 - Second value.

uintoperator& ( uint v0, Bits32 v1 ) #

Component-wise logical AND operation (conjunction).

Arguments

• uint v0 - First value.
• Bits32 v1 - Second value.

intoperator& ( int v0, Bits32 v1 ) #

Component-wise logical AND operation (conjunction).

Arguments

• int v0 - First value.
• Bits32 v1 - Second value.

Bits32operator| ( Bits32 v0, Bits32 v1 ) #

Component-wise logical OR operation (disjunction).

Arguments

• Bits32 v0 - First value.
• Bits32 v1 - Second value.

Bits32operator| ( Bits32 v0, uint v1 ) #

Component-wise logical OR operation (disjunction).

Arguments

• Bits32 v0 - First value.
• uint v1 - Second value.

Bits32operator| ( Bits32 v0, int v1 ) #

Component-wise logical OR operation (disjunction).

Arguments

• Bits32 v0 - First value.
• int v1 - Second value.

uintoperator| ( uint v0, Bits32 v1 ) #

Component-wise logical OR operation (disjunction).

Arguments

• uint v0 - First value.
• Bits32 v1 - Second value.

intoperator| ( int v0, Bits32 v1 ) #

Component-wise logical OR operation (disjunction).

Arguments

• int v0 - First value.
• Bits32 v1 - Second value.

booloperator== ( Bits32 v0, Bits32 v1 ) #

Performs equal comparison.

Arguments

• Bits32 v0 - First value.
• Bits32 v1 - Second value.

booloperator== ( int v0, Bits32 v1 ) #

Performs equal comparison.

Arguments

• int v0 - First value.
• Bits32 v1 - Second value.

booloperator== ( uint v0, Bits32 v1 ) #

Performs equal comparison.

Arguments

• uint v0 - First value.
• Bits32 v1 - Second value.

booloperator== ( Bits32 v0, int v1 ) #

Performs equal comparison.

Arguments

• Bits32 v0 - First value.
• int v1 - Second value.

booloperator== ( Bits32 v0, uint v1 ) #

Performs equal comparison.

Arguments

• Bits32 v0 - First value.
• uint v1 - Second value.

booloperator!= ( Bits32 v0, Bits32 v1 ) #

Not equal comparison.

Arguments

• Bits32 v0 - First value.
• Bits32 v1 - Second value.

booloperator!= ( int v0, Bits32 v1 ) #

Not equal comparison.

Arguments

• int v0 - First value.
• Bits32 v1 - Second value.

booloperator!= ( uint v0, Bits32 v1 ) #

Not equal comparison.

Arguments

• uint v0 - First value.
• Bits32 v1 - Second value.

booloperator!= ( Bits32 v0, int v1 ) #

Not equal comparison.

Arguments

• Bits32 v0 - First value.
• int v1 - Second value.

booloperator!= ( Bits32 v0, uint v1 ) #

Not equal comparison.

Arguments

• Bits32 v0 - First value.
• uint v1 - Second value.

booloperatortrue ( Bits32 v ) #

Returns true if the operand is both, not null and not NaN.

Arguments

• Bits32 v - Value.

booloperatorfalse ( Bits32 v ) #

Returns true if the operand is both, null and NaN.

Arguments

• Bits32 v - Value.

IEnumerator<bool>GetEnumerator ( ) #

Returns an IEnumerator for the object.

Return value.

IEnumeratorGetEnumerator ( ) #

Returns an IEnumerator for the object.

Return value.

boolEquals ( Bits32 other ) #

Checks if the vector and the specified argument are equal (epsilon).

Arguments

• Bits32 other - Value to be checked for equality.

Return value.

boolEquals ( object obj ) #

Checks if the vector and the specified argument are equal (epsilon).

Return value.

Int32GetHashCode ( ) #

Returns a hash code for the current object. Serves as the default hash function.

Return value.

stringToString ( ) #

Converts the current value to a string value.

Return value

Resulting string value.

stringToString ( IFormatProvider provider ) #

Converts the current value to a string value.

Arguments

• IFormatProvider provider

Return value

Resulting string value.

stringToString ( string format ) #

Converts the current value to a string value.

Arguments

• string format - String formatting to be used. A format string is composed of zero or more ordinary characters (excluding %) that are copied directly to the result string and control sequences, each of which results in fetching its own parameter. Each control sequence consists of a percent sign (%) followed by one or more of these elements, in order:
• An optional number, a width specifier, that says how many characters (minimum) this conversion should result in.
• An optional precision specifier that says how many decimal digits should be displayed for floating-point numbers.
• A type specifier that says what type the argument data should be treated as. Possible types:
• c: the argument is treated as an integer and presented as a character with that ASCII value.
• d or i: the argument is treated as an integer and presented as a (signed) decimal number.
• o: the argument is treated as an integer and presented as an octal number.
• u: the argument is treated as an integer and presented as an unsigned decimal number.
• x: the argument is treated as an integer and presented as a hexadecimal number (with lower-case letters).
• X: the argument is treated as an integer and presented as a hexadecimal number (with upper-case letters).
• f: the argument is treated as a float and presented as a floating-point number.
• g: the same as e or f, the shortest one is selected.
• G: the same as E or F, the shortest one is selected.
• e: the argument is treated as using the scientific notation with lower-case 'e' (e.g. 1.2e+2).
• E: the argument is treated as using the scientific notation with upper-case 'E' (e.g. 1.2E+2).
• s: the argument is treated as and presented as a string.
• p: the argument is treated as and presented as a pointer address.
• %: a literal percent character. No argument is required.

Return value

Resulting string value.

stringToString ( string format, IFormatProvider provider ) #

Converts the current value to a string value.

Arguments

• string format - String formatting to be used. A format string is composed of zero or more ordinary characters (excluding %) that are copied directly to the result string and control sequences, each of which results in fetching its own parameter. Each control sequence consists of a percent sign (%) followed by one or more of these elements, in order:
• An optional number, a width specifier, that says how many characters (minimum) this conversion should result in.
• An optional precision specifier that says how many decimal digits should be displayed for floating-point numbers.
• A type specifier that says what type the argument data should be treated as. Possible types:
• c: the argument is treated as an integer and presented as a character with that ASCII value.
• d or i: the argument is treated as an integer and presented as a (signed) decimal number.
• o: the argument is treated as an integer and presented as an octal number.
• u: the argument is treated as an integer and presented as an unsigned decimal number.
• x: the argument is treated as an integer and presented as a hexadecimal number (with lower-case letters).
• X: the argument is treated as an integer and presented as a hexadecimal number (with upper-case letters).
• f: the argument is treated as a float and presented as a floating-point number.
• g: the same as e or f, the shortest one is selected.
• G: the same as E or F, the shortest one is selected.
• e: the argument is treated as using the scientific notation with lower-case 'e' (e.g. 1.2e+2).
• E: the argument is treated as using the scientific notation with upper-case 'E' (e.g. 1.2E+2).
• s: the argument is treated as and presented as a string.
• p: the argument is treated as and presented as a pointer address.
• %: a literal percent character. No argument is required.
• IFormatProvider provider

Return value

Resulting string value.
Last update: 19.12.2023