Fermat
Public Types | Public Methods | Public Members | List of all members
cugar::abs_cosine_functor< Vector_type > Struct Template Reference

Detailed description

template<typename Vector_type>
struct cugar::abs_cosine_functor< Vector_type >

A functor to compute the absolute value of the 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 abs_cosine_functor (const Vector_type &normal)
 
CUGAR_HOST_DEVICE float operator() (const Vector_type &dir) const
 

Public Members

const Vector_type m_normal
 

Constructor & Destructor Documentation

◆ abs_cosine_functor()

template<typename Vector_type >
CUGAR_HOST_DEVICE cugar::abs_cosine_functor< Vector_type >::abs_cosine_functor ( const Vector_type &  normal)
inline

constructor

Parameters
normalreference normal

The documentation for this struct was generated from the following file: