Vector2::Reflect Method

Returns the reflection of a vector off a surface that has the specified normal.

Namespace:  System.Numerics
Assembly:  System.Numerics.Vectors (in System.Numerics.Vectors.dll)

public:
static Vector2 Reflect(
	Vector2 vector, 
	Vector2 normal
)

Parameters

vector
Type: System.Numerics::Vector2

The source vector.

normal
Type: System.Numerics::Vector2

The normal of the surface being reflected off.

Return Value

Type: System.Numerics::Vector2
The reflected vector.
Show: