Template Function TRAP::Math::FaceForward#
Function Documentation#
-
template<u32 L, typename T>
constexpr Vec<L, T> TRAP::Math::FaceForward(const Vec<L, T> &N, const Vec<L, T> &I, const Vec<L, T> &NRef)# Retrieve a vector pointing in the same direction as another.
- Parameters:
N – Specifies the vector to orient.
I – Specifies the incident vector.
NRef – Specifies the reference vector.
- Returns:
If Dot(NRef, I) < 0.0, returns N, otherwise; returns -N.