Vector2.Reflect(Vector2, Vector2) Método

Definição

Retorna a reflexão de um vetor de uma superfície que tem o normal especificado.Returns the reflection of a vector off a surface that has the specified normal.

public:
 static System::Numerics::Vector2 Reflect(System::Numerics::Vector2 vector, System::Numerics::Vector2 normal);
public static System.Numerics.Vector2 Reflect (System.Numerics.Vector2 vector, System.Numerics.Vector2 normal);
static member Reflect : System.Numerics.Vector2 * System.Numerics.Vector2 -> System.Numerics.Vector2
Public Shared Function Reflect (vector As Vector2, normal As Vector2) As Vector2

Parâmetros

vector
Vector2

O vetor de origem.The source vector.

normal
Vector2

O normal da superfície que está sendo refletida.The normal of the surface being reflected off.

Retornos

Vector2

O vetor refletido.The reflected vector.

Aplica-se a