|
template<typename T > |
real3< T > | nanort::operator* (T f, const real3< T > &v) |
|
template<typename T > |
real3< T > | nanort::vneg (const real3< T > &rhs) |
|
template<typename T > |
T | nanort::vlength (const real3< T > &rhs) |
|
template<typename T > |
real3< T > | nanort::vnormalize (const real3< T > &rhs) |
|
template<typename T > |
real3< T > | nanort::vcross (const real3< T > a, const real3< T > b) |
|
template<typename T > |
T | nanort::vdot (const real3< T > a, const real3< T > b) |
|
template<typename T > |
real3< T > | nanort::vsafe_inverse (const real3< T > v) |
|
template<typename real > |
const real * | nanort::get_vertex_addr (const real *p, const size_t idx, const size_t stride_bytes) |
|
template<class T > |
const T & | nanort::safemin (const T &a, const T &b) |
|
template<class T > |
const T & | nanort::safemax (const T &a, const T &b) |
|
template<typename T > |
T | nanort::CalculateSurfaceArea (const real3< T > &min, const real3< T > &max) |
|
template<typename T > |
void | nanort::GetBoundingBoxOfTriangle (real3< T > *bmin, real3< T > *bmax, const T *vertices, const unsigned int *faces, unsigned int index) |
|
template<typename T , class P > |
void | nanort::ContributeBinBuffer (BinBuffer *bins, const real3< T > &scene_min, const real3< T > &scene_max, unsigned int *indices, unsigned int left_idx, unsigned int right_idx, const P &p) |
|
template<typename T > |
T | nanort::SAH (size_t ns1, T leftArea, size_t ns2, T rightArea, T invS, T Taabb, T Ttri) |
|
template<typename T > |
bool | nanort::FindCutFromBinBuffer (T *cut_pos, int *minCostAxis, const BinBuffer *bins, const real3< T > &bmin, const real3< T > &bmax, size_t num_primitives, T costTaabb) |
|
template<typename T , class P > |
void | nanort::ComputeBoundingBox (real3< T > *bmin, real3< T > *bmax, const unsigned int *indices, unsigned int left_index, unsigned int right_index, const P &p) |
|
template<typename T > |
void | nanort::GetBoundingBox (real3< T > *bmin, real3< T > *bmax, const std::vector< BBox< T > > &bboxes, unsigned int *indices, unsigned int left_index, unsigned int right_index) |
|
template<typename T > |
bool | nanort::IntersectRayAABB (T *tminOut, T *tmaxOut, T min_t, T max_t, const T bmin[3], const T bmax[3], real3< T > ray_org, real3< T > ray_inv_dir, int ray_dir_sign[3]) |
|
template<> |
bool | nanort::IntersectRayAABB< float > (float *tminOut, float *tmaxOut, float min_t, float max_t, const float bmin[3], const float bmax[3], real3< float > ray_org, real3< float > ray_inv_dir, int ray_dir_sign[3]) |
|
template<> |
bool | nanort::IntersectRayAABB< double > (double *tminOut, double *tmaxOut, double min_t, double max_t, const double bmin[3], const double bmax[3], real3< double > ray_org, real3< double > ray_inv_dir, int ray_dir_sign[3]) |
|