Vector2:reflect

From Wake
Jump to: navigation, search

Calculate the reflection direction.

Function

Synopsis

result = Vector2:reflect(i, n)

Arguments

Vector2 i

Normalized incident vector.


Vector2 n

Normalized surface orientation vector.

Returns

Vector2 result

Reflection direction vector.

See Also