Advertisement
Apidcloud

Untitled

Aug 25th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement