Rectangular to Spherical | Visual Effect Graph | 10.2.2
docs.unity3d.com
    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
    • Operator properties
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023