docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ror

    ror(int, int)

    Returns the result of rotating the bits of an int right by bits n.

    Declaration
    public static int ror(int x, int n)
    Parameters
    Type Name Description
    int x

    Value to rotate.

    int n

    Number of bits to rotate.

    Returns
    Type Description
    int

    The rotated value.

    ror(int2, int)

    Returns the componentwise result of rotating the bits of an int2 right by bits n.

    Declaration
    public static int2 ror(int2 x, int n)
    Parameters
    Type Name Description
    int2 x

    Value to rotate.

    int n

    Number of bits to rotate.

    Returns
    Type Description
    int2

    The componentwise rotated value.

    ror(int3, int)

    Returns the componentwise result of rotating the bits of an int3 right by bits n.

    Declaration
    public static int3 ror(int3 x, int n)
    Parameters
    Type Name Description
    int3 x

    Value to rotate.

    int n

    Number of bits to rotate.

    Returns
    Type Description
    int3

    The componentwise rotated value.

    ror(int4, int)

    Returns the componentwise result of rotating the bits of an int4 right by bits n.

    Declaration
    public static int4 ror(int4 x, int n)
    Parameters
    Type Name Description
    int4 x

    Value to rotate.

    int n

    Number of bits to rotate.

    Returns
    Type Description
    int4

    The componentwise rotated value.

    ror(uint, int)

    Returns the result of rotating the bits of a uint right by bits n.

    Declaration
    public static uint ror(uint x, int n)
    Parameters
    Type Name Description
    uint x

    Value to rotate.

    int n

    Number of bits to rotate.

    Returns
    Type Description
    uint

    The rotated value.

    ror(uint2, int)

    Returns the componentwise result of rotating the bits of a uint2 right by bits n.

    Declaration
    public static uint2 ror(uint2 x, int n)
    Parameters
    Type Name Description
    uint2 x

    Value to rotate.

    int n

    Number of bits to rotate.

    Returns
    Type Description
    uint2

    The componentwise rotated value.

    ror(uint3, int)

    Returns the componentwise result of rotating the bits of a uint3 right by bits n.

    Declaration
    public static uint3 ror(uint3 x, int n)
    Parameters
    Type Name Description
    uint3 x

    Value to rotate.

    int n

    Number of bits to rotate.

    Returns
    Type Description
    uint3

    The componentwise rotated value.

    ror(uint4, int)

    Returns the componentwise result of rotating the bits of a uint4 right by bits n.

    Declaration
    public static uint4 ror(uint4 x, int n)
    Parameters
    Type Name Description
    uint4 x

    Value to rotate.

    int n

    Number of bits to rotate.

    Returns
    Type Description
    uint4

    The componentwise rotated value.

    ror(long, int)

    Returns the result of rotating the bits of a long right by bits n.

    Declaration
    public static long ror(long x, int n)
    Parameters
    Type Name Description
    long x

    Value to rotate.

    int n

    Number of bits to rotate.

    Returns
    Type Description
    long

    The rotated value.

    ror(ulong, int)

    Returns the result of rotating the bits of a ulong right by bits n.

    Declaration
    public static ulong ror(ulong x, int n)
    Parameters
    Type Name Description
    ulong x

    Value to rotate.

    int n

    Number of bits to rotate.

    Returns
    Type Description
    ulong

    The rotated value.

    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)