docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Square

    Square(int)

    Computes the square of an integer.

    Declaration
    public static int Square(int value)
    Parameters
    Type Name Description
    int value

    The value to square.

    Returns
    Type Description
    int

    The squared value.

    Square(float)

    Computes the square of a float.

    Declaration
    public static float Square(float value)
    Parameters
    Type Name Description
    float value

    The value to square.

    Returns
    Type Description
    float

    The squared 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)