docs.unity.cn
    Show / Hide Table of Contents

    Rotate 2D

    Menu Path : Operator > Math > Vector

    The Rotate 2D Operator performs a 2D rotation of an input point and a given angle around a given center.

    Operator properties

    Input Type Description
    Position Vector2 The point to rotate.
    Rotation Center Vector2 The point to rotate Position around.
    Angle float The angle of rotation to use, in radians.
    Output Type Description
    Position Vector2 The rotated position.
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Tuesday, June 29, 2021