docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SquareNormalize

    SquareNormalize(Vector2)

    Normalized the vector onto the unit square instead of the unit circle

    Declaration
    public static Vector2 SquareNormalize(this Vector2 v)
    Parameters
    Type Name Description
    Vector2 v

    The vector to normalize

    Returns
    Type Description
    Vector2

    The normalized vector, or the zero vector if its magnitude was too small to normalize

    In This Article
    Back to top
    Copyright © 2023 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)