Vector2.Normalize Method (Microsoft.Xna.Framework)

Creates a new Vector2 that contains a normalized values from another vector.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.398)
  • C#
  • VB
  • F#
public static void Normalize(
	Vector2 value, 
	out Vector2 result
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

value
Type: Microsoft.Xna.Framework.Vector2
Source Vector2.
result
Type: out Microsoft.Xna.Framework.Vector2
Unit vector as an output parameter.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web