docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Rotate

    Rotate(float)

    Computes a float2x2 matrix representing a counter-clockwise rotation by an angle in radians.

    Declaration
    public static float2x2 Rotate(float angle)
    Parameters
    Type Name Description
    float angle

    Rotation angle in radians.

    Returns
    Type Description
    float2x2

    Returns the 2x2 rotation matrix.

    Remarks

    A positive rotation angle will produce a counter-clockwise rotation and a negative rotation angle will produce a clockwise rotation.

    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)