Template Function TRAP::Math::Reflect#
Function Documentation#
-
template<u32 L, typename T>
constexpr Vec<L, T> TRAP::Math::Reflect(const Vec<L, T> &I, const Vec<L, T> &N)# Calculate the reflection direction for an incident vector.
- Parameters:
I – Specifies the incident vector.
N – Specifies the normal vector.
- Returns:
For the incident vector I and surface orientation N, returns the reflection direction: result = I - 2.0 * Dot(N, I) * N.