docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method reversebits

    reversebits(int)

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

    Declaration
    public static int reversebits(int x)
    Parameters
    Type Name Description
    int x

    Value to reverse.

    Returns
    Type Description
    int

    Value with reversed bits.

    reversebits(int2)

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

    Declaration
    public static int2 reversebits(int2 x)
    Parameters
    Type Name Description
    int2 x

    Value to reverse.

    Returns
    Type Description
    int2

    Value with componentwise reversed bits.

    reversebits(int3)

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

    Declaration
    public static int3 reversebits(int3 x)
    Parameters
    Type Name Description
    int3 x

    Value to reverse.

    Returns
    Type Description
    int3

    Value with componentwise reversed bits.

    reversebits(int4)

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

    Declaration
    public static int4 reversebits(int4 x)
    Parameters
    Type Name Description
    int4 x

    Value to reverse.

    Returns
    Type Description
    int4

    Value with componentwise reversed bits.

    reversebits(uint)

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

    Declaration
    public static uint reversebits(uint x)
    Parameters
    Type Name Description
    uint x

    Value to reverse.

    Returns
    Type Description
    uint

    Value with reversed bits.

    reversebits(uint2)

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

    Declaration
    public static uint2 reversebits(uint2 x)
    Parameters
    Type Name Description
    uint2 x

    Value to reverse.

    Returns
    Type Description
    uint2

    Value with componentwise reversed bits.

    reversebits(uint3)

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

    Declaration
    public static uint3 reversebits(uint3 x)
    Parameters
    Type Name Description
    uint3 x

    Value to reverse.

    Returns
    Type Description
    uint3

    Value with componentwise reversed bits.

    reversebits(uint4)

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

    Declaration
    public static uint4 reversebits(uint4 x)
    Parameters
    Type Name Description
    uint4 x

    Value to reverse.

    Returns
    Type Description
    uint4

    Value with componentwise reversed bits.

    reversebits(long)

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

    Declaration
    public static long reversebits(long x)
    Parameters
    Type Name Description
    long x

    Value to reverse.

    Returns
    Type Description
    long

    Value with reversed bits.

    reversebits(ulong)

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

    Declaration
    public static ulong reversebits(ulong x)
    Parameters
    Type Name Description
    ulong x

    Value to reverse.

    Returns
    Type Description
    ulong

    Value with reversed bits.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)