18 #ifndef __CCD_SIMPLEX_H__ 19 #define __CCD_SIMPLEX_H__ 21 #include <ccd/compiler.h> 43 _ccd_inline
void ccdSimplexSetSize(
ccd_simplex_t *s,
int size);
44 _ccd_inline
void ccdSimplexSwap(
ccd_simplex_t *s,
size_t pos1,
size_t pos2);
61 return ccdSimplexPoint(s, s->
last);
78 ccdSupportCopy(s->ps + s->
last, v);
83 ccdSupportCopy(s->ps + pos, a);
86 _ccd_inline
void ccdSimplexSetSize(
ccd_simplex_t *s,
int size)
91 _ccd_inline
void ccdSimplexSwap(
ccd_simplex_t *s,
size_t pos1,
size_t pos2)
95 ccdSupportCopy(&supp, &s->ps[pos1]);
96 ccdSupportCopy(&s->ps[pos1], &s->ps[pos2]);
97 ccdSupportCopy(&s->ps[pos2], &supp);
int last
index of last added point
Definition: simplex.h:30