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

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

    math.ror

    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 ror(int x, int n);

    Parameters

    Parameter Description
    x Value to rotate.
    n Number of bits to rotate.

    Returns

    int The rotated value.

    Description

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


    Declaration

    public static int2 ror(int2 x, int n);

    Parameters

    Parameter Description
    x Value to rotate.
    n Number of bits to rotate.

    Returns

    int2 The componentwise rotated value.

    Description

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


    Declaration

    public static int3 ror(int3 x, int n);

    Parameters

    Parameter Description
    x Value to rotate.
    n Number of bits to rotate.

    Returns

    int3 The componentwise rotated value.

    Description

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


    Declaration

    public static int4 ror(int4 x, int n);

    Parameters

    Parameter Description
    x Value to rotate.
    n Number of bits to rotate.

    Returns

    int4 The componentwise rotated value.

    Description

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


    Declaration

    public static uint ror(uint x, int n);

    Parameters

    Parameter Description
    x Value to rotate.
    n Number of bits to rotate.

    Returns

    uint The rotated value.

    Description

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


    Declaration

    public static uint2 ror(uint2 x, int n);

    Parameters

    Parameter Description
    x Value to rotate.
    n Number of bits to rotate.

    Returns

    uint2 The componentwise rotated value.

    Description

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


    Declaration

    public static uint3 ror(uint3 x, int n);

    Parameters

    Parameter Description
    x Value to rotate.
    n Number of bits to rotate.

    Returns

    uint3 The componentwise rotated value.

    Description

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


    Declaration

    public static uint4 ror(uint4 x, int n);

    Parameters

    Parameter Description
    x Value to rotate.
    n Number of bits to rotate.

    Returns

    uint4 The componentwise rotated value.

    Description

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


    Declaration

    public static long ror(long x, int n);

    Parameters

    Parameter Description
    x Value to rotate.
    n Number of bits to rotate.

    Returns

    long The rotated value.

    Description

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


    Declaration

    public static ulong ror(ulong x, int n);

    Parameters

    Parameter Description
    x Value to rotate.
    n Number of bits to rotate.

    Returns

    ulong The rotated value.

    Description

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


    Web Proxy Viewer  |  New URL  |  Original Page