Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public double Magnitude {
- get { return Math.Sqrt (this.X * this.X + this.Y * this.Y); }
- }
- /// <summary>
- /// The square of the magnitude, or length, of this vector.
- /// <see cref="http://docs.unity3d.com/ScriptReference/Vector3-sqrMagnitude.html"/>
- /// </summary>
- /// <value>The square of the length of this vector</value>
- public double SqrMagnitude {
- get { return this.X * this.X + this.Y * this.Y; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement