public override int GetHashCode()
 {
     return(FocalLengthX.GetHashCode() ^ FocalLengthY.GetHashCode() ^
            PrincipalPointX.GetHashCode() ^ PrincipalPointY.GetHashCode() ^
            RadialDistortionSecondOrder.GetHashCode() ^ RadialDistortionFourthOrder.GetHashCode() ^
            RadialDistortionSixthOrder.GetHashCode());
 }
 public bool Equals(CameraIntrinsics obj)
 {
     return(FocalLengthX.Equals(obj.FocalLengthX) && FocalLengthY.Equals(obj.FocalLengthY) &&
            PrincipalPointX.Equals(obj.PrincipalPointX) && PrincipalPointY.Equals(obj.PrincipalPointY) &&
            RadialDistortionSecondOrder.Equals(obj.RadialDistortionSecondOrder) &&
            RadialDistortionFourthOrder.Equals(obj.RadialDistortionFourthOrder) &&
            RadialDistortionSixthOrder.Equals(obj.RadialDistortionSixthOrder));
 }
 /// <summary>
 /// Calculates the hash code of the CameraParameters.
 /// </summary>
 /// <returns>The hash code.</returns>
 public override int GetHashCode()
 {
     // Note this method of hash code generation is similar to what the XNA framework does
     return(FocalLengthX.GetHashCode() + FocalLengthY.GetHashCode()
            + PrincipalPointX.GetHashCode() + PrincipalPointY.GetHashCode());
 }