Vector3:reflect

From Wake
Jump to: navigation, search

Calculate the reflection direction.

Function

Synopsis

result = Vector3:reflect(i, n)

Arguments

Vector3 i

Normalized incident vector.


Vector3 n

Normalized surface orientation vector.

Returns

Vector3 result

Reflection direction vector.

See Also