Ejemplo n.º 1
0
 /// <summary>
 /// Compares the current object with another object of the same type.
 /// </summary>
 /// <returns>
 /// A value that indicates the relative order of the objects being compared. The return value has the following meanings:
 /// Value Meaning Less than zero This object is less than the <paramref name="other"/> parameter.
 /// Zero This object is equal to <paramref name="other"/>.
 /// Greater than zero This object is greater than <paramref name="other"/>.
 /// </returns>
 /// <param name="other">An object to compare with this object.</param>
 public int CompareTo(IAngle other)
 {
     if (other is null)
     {
         return(Degrees.CompareTo(null));
     }
     return(Degrees.CompareTo(other.Degrees));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Compares the current object with another object of the same type.
 /// </summary>
 /// <returns>
 /// A value that indicates the relative order of the objects being compared. The return value has the following meanings: Value Meaning Less than zero This object is less than the <paramref name="other"/> parameter.Zero This object is equal to <paramref name="other"/>. Greater than zero This object is greater than <paramref name="other"/>.
 /// </returns>
 /// <param name="other">An object to compare with this object.</param>
 public int CompareTo(int other)
 {
     return(Degrees.CompareTo(other));
 }
Ejemplo n.º 3
0
 public int CompareTo(Angle angle)
 {
     return(Degrees.CompareTo(angle.Degrees));
 }