docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Pi (π)

    Menu Path : Operator > Math > Constants > Pi (π)

    The Pi (π) Operator returns the number Pi (π). This is the ratio of the circumference of a circle to its diameter.

    Operator properties

    Output Type Description
    π float The value of Pi. This is the same value as Mathf.PI.
    2π float The result of 2 * Pi.
    π/2 float The result of Pi / 2.
    π/3 float The result of Pi / 3.
    In This Article
    Back to top
    Copyright © 2025 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)