docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Rectangular to Spherical

    Menu Path : Operator > Math > Coordinates

    The Rectangular to Spherical Operator performs a 3D coordinate conversion between a rectangular XYZ space to a spherical (theta/phi/distance) space.

    Operator properties

    Input Type Description
    Coordinate Vector3 The Input 3D coordinate.
    Output Type Description
    theta float The theta sphere angle (in radians).
    phi phy The phi sphere angle (in radians).
    distance float The output distance to origin.
    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)