Click or drag to resize

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
)

Parameters

vector
Type: Karamba.GeometryVector2
The source vector.
normal
Type: Karamba.GeometryVector2
The normal of the surface being reflected off.

Return Value

Type: Vector2
The reflected vector.
See Also