|
Vector2Reflect Method
|
Returns the reflection of a vector off a surface that has the specified normal.
Namespace:
Karamba.Geometry
Assembly:
KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static Vector2 Reflect(
Vector2 vector,
Vector2 normal
)
Public Shared Function Reflect (
vector As Vector2,
normal As Vector2
) As Vector2
public:
static Vector2 Reflect(
Vector2 vector,
Vector2 normal
)
static member Reflect :
vector : Vector2 *
normal : Vector2 -> Vector2
Parameters
- vector
- Type: Karamba.GeometryVector2
The source vector. - normal
- Type: Karamba.GeometryVector2
The normal of the surface being reflected off.
Return Value
Type:
Vector2The reflected vector.
See Also