[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/Unity.Mathematics.math-reversebits.html [Back]  [Original]

Unity - Scripting API: Unity.Mathematics.math.reversebits
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    LanguageEnglish
    • C#

    math.reversebits

    Suggest a change

    Success!

    Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

    Close

    Submission failed

    For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

    Close
    Your name Your email Suggestion* Submit suggestion

    Cancel

    Declaration

    public static int reversebits(int x);

    Parameters

    Parameter Description
    x Value to reverse.

    Returns

    int Value with reversed bits.

    Description

    Returns the result of performing a reversal of the bit pattern of an int value.


    Declaration

    public static int2 reversebits(int2 x);

    Parameters

    Parameter Description
    x Value to reverse.

    Returns

    int2 Value with componentwise reversed bits.

    Description

    Returns the result of performing a componentwise reversal of the bit pattern of an int2 vector.


    Declaration

    public static int3 reversebits(int3 x);

    Parameters

    Parameter Description
    x Value to reverse.

    Returns

    int3 Value with componentwise reversed bits.

    Description

    Returns the result of performing a componentwise reversal of the bit pattern of an int3 vector.


    Declaration

    public static int4 reversebits(int4 x);

    Parameters

    Parameter Description
    x Value to reverse.

    Returns

    int4 Value with componentwise reversed bits.

    Description

    Returns the result of performing a componentwise reversal of the bit pattern of an int4 vector.


    Declaration

    public static uint reversebits(uint x);

    Parameters

    Parameter Description
    x Value to reverse.

    Returns

    uint Value with reversed bits.

    Description

    Returns the result of performing a reversal of the bit pattern of a uint value.


    Declaration

    public static uint2 reversebits(uint2 x);

    Parameters

    Parameter Description
    x Value to reverse.

    Returns

    uint2 Value with componentwise reversed bits.

    Description

    Returns the result of performing a componentwise reversal of the bit pattern of an uint2 vector.


    Declaration

    public static uint3 reversebits(uint3 x);

    Parameters

    Parameter Description
    x Value to reverse.

    Returns

    uint3 Value with componentwise reversed bits.

    Description

    Returns the result of performing a componentwise reversal of the bit pattern of an uint3 vector.


    Declaration

    public static uint4 reversebits(uint4 x);

    Parameters

    Parameter Description
    x Value to reverse.

    Returns

    uint4 Value with componentwise reversed bits.

    Description

    Returns the result of performing a componentwise reversal of the bit pattern of an uint4 vector.


    Declaration

    public static long reversebits(long x);

    Parameters

    Parameter Description
    x Value to reverse.

    Returns

    long Value with reversed bits.

    Description

    Returns the result of performing a reversal of the bit pattern of a long value.


    Declaration

    public static ulong reversebits(ulong x);

    Parameters

    Parameter Description
    x Value to reverse.

    Returns

    ulong Value with reversed bits.

    Description

    Returns the result of performing a reversal of the bit pattern of a ulong value.


    Web Proxy Viewer  |  New URL  |  Original Page