/**
         * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful.
         */
        public bool equals(DeadReckoningParameter rhs)
        {
            bool ivarsEqual = true;

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

            if (!(_deadReckoningAlgorithm == rhs._deadReckoningAlgorithm))
            {
                ivarsEqual = false;
            }

            for (int idx = 0; idx < 15; idx++)
            {
                if (!(_otherParameters[idx] == rhs._otherParameters[idx]))
                {
                    ivarsEqual = false;
                }
            }

            if (!(_entityLinearAcceleration.Equals(rhs._entityLinearAcceleration)))
            {
                ivarsEqual = false;
            }
            if (!(_entityAngularVelocity.Equals(rhs._entityAngularVelocity)))
            {
                ivarsEqual = false;
            }

            return(ivarsEqual);
        }
Пример #2
0
 ///<summary>
 ///parameters used for dead reckoning
 ///</summary>
 public void setDeadReckoningParameters(DeadReckoningParameter pDeadReckoningParameters)
 {
     _deadReckoningParameters = pDeadReckoningParameters;
 }
Пример #3
0
 ///<summary>
 ///parameters used for dead reckoning
 ///</summary>
 public void setDeadReckoningParameters(DeadReckoningParameter pDeadReckoningParameters)
 {
     _deadReckoningParameters = pDeadReckoningParameters;
 }
        /**
          * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful.
          */
        public bool equals(DeadReckoningParameter rhs)
        {
            bool ivarsEqual = true;

            if(rhs.GetType() != this.GetType())
            return false;

             if( ! (_deadReckoningAlgorithm == rhs._deadReckoningAlgorithm)) ivarsEqual = false;

             for(int idx = 0; idx < 15; idx++)
             {
              if(!(_otherParameters[idx] == rhs._otherParameters[idx])) ivarsEqual = false;
             }

             if( ! (_entityLinearAcceleration.Equals( rhs._entityLinearAcceleration) )) ivarsEqual = false;
             if( ! (_entityAngularVelocity.Equals( rhs._entityAngularVelocity) )) ivarsEqual = false;

            return ivarsEqual;
        }