Apidcloud

Untitled

Aug 25th, 2016
70
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public double Magnitude {
  2. get { return Math.Sqrt (this.X * this.X + this.Y * this.Y); }
  3. }
  4.  
  5. /// <summary>
  6. /// The square of the magnitude, or length, of this vector.
  7. /// <see cref="http://docs.unity3d.com/ScriptReference/Vector3-sqrMagnitude.html"/>
  8. /// </summary>
  9. /// <value>The square of the length of this vector</value>
  10. public double SqrMagnitude {
  11. get { return this.X * this.X + this.Y * this.Y; }
  12. }
RAW Paste Data