Vector2.Reflect Method (Microsoft.Xna.Framework)

Creates a new Vector2 that contains reflect vector of the given vector and normal.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public static Vector2 Reflect(
	Vector2 vector, 
	Vector2 normal
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

vector
Type: Microsoft.Xna.Framework.Vector2
Source Vector2.
normal
Type: Microsoft.Xna.Framework.Vector2
Reflection normal.

Return Value

Type: Microsoft.Xna.Framework.Vector2
Reflected vector.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web