/*
  * (non-Javadoc)
  *
  * @see java.lang.Object#equals(java.lang.Object)
  */
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   Hit other = (Hit) obj;
   if (!getOuterType().equals(other.getOuterType())) return false;
   if (mDistance == null) {
     if (other.mDistance != null) return false;
   } else if (!mDistance.equals(other.mDistance)) return false;
   if (mHitRay == null) {
     if (other.mHitRay != null) return false;
   } else if (!mHitRay.equals(other.mHitRay)) return false;
   if (mIntersection == null) {
     if (other.mIntersection != null) return false;
   } else if (!mIntersection.equals(other.mIntersection)) return false;
   return true;
 }