/// <summary>
        /// Compares for reference AND value equality.
        /// </summary>
        /// <param name="obj">The object to compare with this instance.</param>
        /// <returns>
        ///     <c>true</c> if both operands are equal; otherwise, <c>false</c>.
        /// </returns>
        public bool Equals(BeamAntennaPattern obj)
        {
            bool ivarsEqual = true;

            if (obj.GetType() != this.GetType())
            {
                return(false);
            }

            if (!this._beamDirection.Equals(obj._beamDirection))
            {
                ivarsEqual = false;
            }

            if (this._azimuthBeamwidth != obj._azimuthBeamwidth)
            {
                ivarsEqual = false;
            }

            if (this._referenceSystem != obj._referenceSystem)
            {
                ivarsEqual = false;
            }

            if (this._padding1 != obj._padding1)
            {
                ivarsEqual = false;
            }

            if (this._padding2 != obj._padding2)
            {
                ivarsEqual = false;
            }

            if (this._ez != obj._ez)
            {
                ivarsEqual = false;
            }

            if (this._ex != obj._ex)
            {
                ivarsEqual = false;
            }

            if (this._phase != obj._phase)
            {
                ivarsEqual = false;
            }

            return(ivarsEqual);
        }
        /// <summary>
        /// Compares for reference AND value equality.
        /// </summary>
        /// <param name="obj">The object to compare with this instance.</param>
        /// <returns>
        /// 	<c>true</c> if both operands are equal; otherwise, <c>false</c>.
        /// </returns>
        public bool Equals(BeamAntennaPattern obj)
        {
            bool ivarsEqual = true;

            if (obj.GetType() != this.GetType())
            {
                return false;
            }

            if (!this._beamDirection.Equals(obj._beamDirection))
            {
                ivarsEqual = false;
            }

            if (this._azimuthBeamwidth != obj._azimuthBeamwidth)
            {
                ivarsEqual = false;
            }

            if (this._referenceSystem != obj._referenceSystem)
            {
                ivarsEqual = false;
            }

            if (this._padding1 != obj._padding1)
            {
                ivarsEqual = false;
            }

            if (this._padding2 != obj._padding2)
            {
                ivarsEqual = false;
            }

            if (this._ez != obj._ez)
            {
                ivarsEqual = false;
            }

            if (this._ex != obj._ex)
            {
                ivarsEqual = false;
            }

            if (this._phase != obj._phase)
            {
                ivarsEqual = false;
            }

            return ivarsEqual;
        }