HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_KDQueryPtUnitWrap Struct Reference

#include <UT_KDTree.h>

Public Member Functions

 UT_KDQueryPtUnitWrap (const float *p, int ndims=3)
 
float boxDist (const UT_BoundingBox &box) const
 
float dist (const float *P, int) const
 This distance squared needs to be exact. More...
 

Public Attributes

const float * myP
 
const int myNDims
 

Detailed Description

This query point considers space to wrap between 0 and 1 in all dimensions. It only supports up to 3 dimensions due to UT_BoundingBox only having 3 dimensions.

Definition at line 82 of file UT_KDTree.h.

Constructor & Destructor Documentation

UT_KDQueryPtUnitWrap::UT_KDQueryPtUnitWrap ( const float *  p,
int  ndims = 3 
)
inline

Definition at line 83 of file UT_KDTree.h.

Member Function Documentation

float UT_KDQueryPtUnitWrap::boxDist ( const UT_BoundingBox box) const
inline

This can be an underestimate, but not an overestimate of the distance squared.

Definition at line 90 of file UT_KDTree.h.

float UT_KDQueryPtUnitWrap::dist ( const float *  P,
int   
) const
inline

This distance squared needs to be exact.

Definition at line 109 of file UT_KDTree.h.

Member Data Documentation

const int UT_KDQueryPtUnitWrap::myNDims

Definition at line 128 of file UT_KDTree.h.

const float* UT_KDQueryPtUnitWrap::myP

Definition at line 127 of file UT_KDTree.h.


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