Vector2.Division Method (Microsoft.Xna.Framework)

Divides the components of a Vector2 by the components of another Vector2.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public static Vector2 Division(
	Vector2 value1, 
	Vector2 value2

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: Microsoft.Xna.Framework.Vector2
Source Vector2 on the left of the div sign.
Type: Microsoft.Xna.Framework.Vector2
Divisor Vector2 on the right of the div sign.

Return Value

Type: Microsoft.Xna.Framework.Vector2
The result of dividing the vectors.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop