Refracted


Return refracted around normal vector.

template<class TYPE>
TVec2<TYPE> Refracted(const TVec2<TYPE> &v, const TVec2<TYPE> &normal, const TYPE eta);
template<class TYPE>
TVec3<TYPE> Refracted(const TVec3<TYPE> &v, const TVec3<TYPE> &normal, const TYPE eta);
template<class TYPE>
TVec4<TYPE> Refracted(const TVec4<TYPE> &v, const TVec4<TYPE> &normal, const TYPE eta);
Namespace: ntl
Include: NTL/Core/Vec2.h (For TVec2 arguments)
NTL/Core/Vec3.h (For TVec3 arguments)
NTL/Core/Vec4.h (For TVec4 arguments)