Esempio n. 1
0
    public static SphericalCoordinates CartesianToSpherical(Vector3 cartCoords)
    {
        SphericalCoordinates sphericalCoordinates = new SphericalCoordinates();

        SphericalCoordinates.CartesianToSpherical(cartCoords, out sphericalCoordinates.radius, out sphericalCoordinates.polar, out sphericalCoordinates.elevation);
        return(sphericalCoordinates);
    }