Share via


Vector2.Normalize Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

Creates a unit vector from the specified vector. The result is a vector one unit in length pointing in the same direction as the original vector.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method Normalize() Turns the current vector into a unit vector. The result is a vector one unit in length pointing in the same direction as the original vector.
Public methodStatic member Normalize(Vector2) Creates a unit vector from the specified vector. The result is a vector one unit in length pointing in the same direction as the original vector.
Public methodStatic member Normalize(Vector2%, Vector2%) Creates a unit vector from the specified vector, writing the result to a user-specified variable. The result is a vector one unit in length pointing in the same direction as the original vector.

Top