Vector2D.Reflect Static Method
C#
public static Vector2D Reflect(Vector2D vector, Vector2D normal)
Returns the reflection of a vector off a surface that has the specified normal.
Parameters
[Vector2D] vector |
The source vector. |
[Vector2D] normal |
The normal of the surface being reflected off. |
Returns
Vector2D |
The reflected vector. |