Ejemplo n.º 1
0
        public override bool Equals(object other)
        {
            if (!(other is Spherical))
            {
                return(false);
            }

            Spherical polar = (Spherical)other;

            return(this.radius.Equals(polar.radius) && this.azimuth.Equals(polar.azimuth) && this.azimuth.Equals(polar.polar));
        }
Ejemplo n.º 2
0
        public static Vector3 PolarToCartesian(float radius, float azimuth, float polar)
        {
            Spherical cartesian = new Spherical(radius, azimuth, polar);

            return(cartesian);
        }
Ejemplo n.º 3
0
        public static Spherical CartesianToPolar(Vector3 cartesian)
        {
            Spherical polar = new Spherical(cartesian);

            return(polar);
        }