public override int GetHashCode()
 {
     return(FocalLengthX.GetHashCode() ^ FocalLengthY.GetHashCode() ^
            PrincipalPointX.GetHashCode() ^ PrincipalPointY.GetHashCode() ^
            RadialDistortionSecondOrder.GetHashCode() ^ RadialDistortionFourthOrder.GetHashCode() ^
            RadialDistortionSixthOrder.GetHashCode());
 }
Ejemplo n.º 2
0
 /// <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());
 }