Fermat
|
A functor to compute the clamped cosine of the angle formed with a given normal
#include <functors.h>
Public Types | |
typedef Vector_type | argument_type |
typedef float | result_type |
Public Methods | |
CUGAR_HOST_DEVICE | clamped_cosine_functor (const Vector_type &normal) |
CUGAR_HOST_DEVICE float | operator() (const Vector_type &dir) const |
Public Members | |
const Vector_type | m_normal |
|
inline |
constructor
normal | reference normal |