gdiam.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GBBox
 
class  gdiam_bbox
 
class  GPointPair
 

Macros

#define __MINMAX_DEFINED
 
#define GDIAM_DIM   3
 

Typedefs

using gdiam_point = gdiam_real *
 
using gdiam_point_2d = gdiam_real *
 
typedef gdiam_real gdiam_point_2d_t[2]
 
using gdiam_point_cnt = const gdiam_real *
 
typedef gdiam_real gdiam_point_t[GDIAM_DIM]
 
using gdiam_real = double
 

Functions

gdiam_bbox gdiam_approx_const_mvbb (gdiam_point *start, int size, gdiam_real eps, GBBox *p_ap_bbox)
 
GPointPair gdiam_approx_diam (gdiam_point *start, int size, gdiam_real eps)
 
gdiam_real gdiam_approx_diam (gdiam_real *start, int size, gdiam_real eps)
 
GPointPair gdiam_approx_diam_pair (gdiam_real *start, int size, gdiam_real eps)
 
GPointPair gdiam_approx_diam_pair_UDM (gdiam_real *start, int size, gdiam_real eps)
 
gdiam_bbox gdiam_approx_mvbb (gdiam_point *start, int size, gdiam_real eps)
 
gdiam_bbox gdiam_approx_mvbb_grid (gdiam_point *start, int size, int grid_size)
 
gdiam_bbox gdiam_approx_mvbb_grid_sample (gdiam_point *start, int size, int grid_size, int sample_size)
 
gdiam_bbox gdiam_approx_mvbb_grid_sample (gdiam_real *start, int size, int grid_size, int sample_size)
 
gdiam_pointgdiam_convert (gdiam_real *start, int size)
 
template<class T >
void gdiam_exchange (T &a, T &b)
 
void gdiam_generate_orthonormal_base (gdiam_point in, gdiam_point out1, gdiam_point out2)
 
template<class T >
T max (T t1, T t2)
 
template<class T >
T min (T t1, T t2)
 
void pnt_copy (gdiam_point_t dest, gdiam_point_t src)
 
void pnt_cross_prod (const gdiam_point a, const gdiam_point b, const gdiam_point out)
 
gdiam_real pnt_distance (gdiam_point p, gdiam_point q)
 
gdiam_real pnt_distance (gdiam_point p, gdiam_point q, gdiam_point_cnt dir)
 
gdiam_real pnt_distance_2d (gdiam_point_2d p, gdiam_point_2d q)
 
gdiam_real pnt_dot_prod (gdiam_point_cnt a, gdiam_point_cnt b)
 
void pnt_dump (gdiam_point_cnt pnt)
 
void pnt_init (gdiam_point pnt, gdiam_real x, gdiam_real y, gdiam_real z)
 
void pnt_init_normalize (gdiam_point pnt, gdiam_real x, gdiam_real y, gdiam_real z)
 
bool pnt_isEqual (const gdiam_point p, const gdiam_point q)
 
gdiam_real pnt_length (const gdiam_point pnt)
 
void pnt_normalize (gdiam_point pnt)
 
void pnt_scale_and_add (gdiam_point dest, gdiam_real coef, gdiam_point_cnt vec)
 
void pnt_zero (gdiam_point dst)
 

Macro Definition Documentation

◆ __MINMAX_DEFINED

#define __MINMAX_DEFINED

Definition at line 28 of file gdiam.h.

◆ GDIAM_DIM

#define GDIAM_DIM   3

Definition at line 19 of file gdiam.h.

Typedef Documentation

◆ gdiam_point

Definition at line 24 of file gdiam.h.

◆ gdiam_point_2d

Definition at line 23 of file gdiam.h.

◆ gdiam_point_2d_t

typedef gdiam_real gdiam_point_2d_t[2]

Definition at line 22 of file gdiam.h.

◆ gdiam_point_cnt

using gdiam_point_cnt = const gdiam_real*

Definition at line 25 of file gdiam.h.

◆ gdiam_point_t

typedef gdiam_real gdiam_point_t[GDIAM_DIM]

Definition at line 21 of file gdiam.h.

◆ gdiam_real

using gdiam_real = double

Definition at line 20 of file gdiam.h.

Function Documentation

◆ gdiam_approx_const_mvbb()

gdiam_bbox gdiam_approx_const_mvbb ( gdiam_point start,
int  size,
gdiam_real  eps,
GBBox p_ap_bbox 
)

Definition at line 1349 of file gdiam.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gdiam_approx_diam() [1/2]

GPointPair gdiam_approx_diam ( gdiam_point start,
int  size,
gdiam_real  eps 
)

Definition at line 1268 of file gdiam.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gdiam_approx_diam() [2/2]

gdiam_real gdiam_approx_diam ( gdiam_real start,
int  size,
gdiam_real  eps 
)

◆ gdiam_approx_diam_pair()

GPointPair gdiam_approx_diam_pair ( gdiam_real start,
int  size,
gdiam_real  eps 
)

Definition at line 1321 of file gdiam.cpp.

+ Here is the call graph for this function:

◆ gdiam_approx_diam_pair_UDM()

GPointPair gdiam_approx_diam_pair_UDM ( gdiam_real start,
int  size,
gdiam_real  eps 
)

Definition at line 1335 of file gdiam.cpp.

+ Here is the call graph for this function:

◆ gdiam_approx_mvbb()

gdiam_bbox gdiam_approx_mvbb ( gdiam_point start,
int  size,
gdiam_real  eps 
)

Definition at line 2637 of file gdiam.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gdiam_approx_mvbb_grid()

gdiam_bbox gdiam_approx_mvbb_grid ( gdiam_point start,
int  size,
int  grid_size 
)

Definition at line 2742 of file gdiam.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gdiam_approx_mvbb_grid_sample() [1/2]

gdiam_bbox gdiam_approx_mvbb_grid_sample ( gdiam_point start,
int  size,
int  grid_size,
int  sample_size 
)

Definition at line 2919 of file gdiam.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gdiam_approx_mvbb_grid_sample() [2/2]

gdiam_bbox gdiam_approx_mvbb_grid_sample ( gdiam_real start,
int  size,
int  grid_size,
int  sample_size 
)

Definition at line 2961 of file gdiam.cpp.

+ Here is the call graph for this function:

◆ gdiam_convert()

gdiam_point* gdiam_convert ( gdiam_real start,
int  size 
)

Definition at line 1302 of file gdiam.cpp.

+ Here is the caller graph for this function:

◆ gdiam_exchange()

void gdiam_exchange ( T a,
T b 
)
inline

Definition at line 55 of file gdiam.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gdiam_generate_orthonormal_base()

void gdiam_generate_orthonormal_base ( gdiam_point  in,
gdiam_point  out1,
gdiam_point  out2 
)

Definition at line 1464 of file gdiam.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ max()

T max ( T  t1,
T  t2 
)
inline

Definition at line 48 of file gdiam.h.

◆ min()

T min ( T  t1,
T  t2 
)
inline

Definition at line 42 of file gdiam.h.

◆ pnt_copy()

void pnt_copy ( gdiam_point_t  dest,
gdiam_point_t  src 
)
inline

Definition at line 83 of file gdiam.h.

+ Here is the caller graph for this function:

◆ pnt_cross_prod()

void pnt_cross_prod ( const gdiam_point  a,
const gdiam_point  b,
const gdiam_point  out 
)
inline

Definition at line 108 of file gdiam.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pnt_distance() [1/2]

gdiam_real pnt_distance ( gdiam_point  p,
gdiam_point  q 
)
inline

Definition at line 128 of file gdiam.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pnt_distance() [2/2]

gdiam_real pnt_distance ( gdiam_point  p,
gdiam_point  q,
gdiam_point_cnt  dir 
)
inline

Definition at line 137 of file gdiam.h.

+ Here is the call graph for this function:

◆ pnt_distance_2d()

gdiam_real pnt_distance_2d ( gdiam_point_2d  p,
gdiam_point_2d  q 
)
inline

Definition at line 118 of file gdiam.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pnt_dot_prod()

gdiam_real pnt_dot_prod ( gdiam_point_cnt  a,
gdiam_point_cnt  b 
)
inline

Definition at line 100 of file gdiam.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pnt_dump()

void pnt_dump ( gdiam_point_cnt  pnt)
inline

Definition at line 94 of file gdiam.h.

+ Here is the caller graph for this function:

◆ pnt_init()

void pnt_init ( gdiam_point  pnt,
gdiam_real  x,
gdiam_real  y,
gdiam_real  z 
)
inline

Definition at line 153 of file gdiam.h.

+ Here is the caller graph for this function:

◆ pnt_init_normalize()

void pnt_init_normalize ( gdiam_point  pnt,
gdiam_real  x,
gdiam_real  y,
gdiam_real  z 
)
inline

Definition at line 164 of file gdiam.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pnt_isEqual()

bool pnt_isEqual ( const gdiam_point  p,
const gdiam_point  q 
)
inline

Definition at line 176 of file gdiam.h.

+ Here is the caller graph for this function:

◆ pnt_length()

gdiam_real pnt_length ( const gdiam_point  pnt)
inline

Definition at line 63 of file gdiam.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pnt_normalize()

void pnt_normalize ( gdiam_point  pnt)
inline

Definition at line 69 of file gdiam.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pnt_scale_and_add()

void pnt_scale_and_add ( gdiam_point  dest,
gdiam_real  coef,
gdiam_point_cnt  vec 
)
inline

Definition at line 185 of file gdiam.h.

+ Here is the caller graph for this function:

◆ pnt_zero()

void pnt_zero ( gdiam_point  dst)
inline

Definition at line 90 of file gdiam.h.

+ Here is the caller graph for this function: