Esempio n. 1
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
 public override int GetHashCode()
 {
     return(Xcomponent.GetHashCode() ^ Ycomponent.GetHashCode());
 }
Esempio n. 2
0
 /// <summary>
 /// Gets the square of the length of this vector.
 /// </summary>
 /// <returns>System.Double.</returns>
 public double MagnitudeSquared()
 {
     return(Xcomponent.Squared() + Ycomponent.Squared() + Zcomponent.Squared());
 }