3
* ---------------------------------
4
* Copyright (c)2010 Daniel Fiser <danfis@danfis.cz>
7
* This file is part of libccd.
9
* Distributed under the OSI-approved BSD License (the "License");
10
* see accompanying file BDS-LICENSE for details or see
11
* <http://www.opensource.org/licenses/bsd-license.php>.
13
* This software is distributed WITHOUT ANY WARRANTY; without even the
14
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
* See the License for more information.
18
#ifndef __CCD_SUPPORT_H__
19
#define __CCD_SUPPORT_H__
25
#endif /* __cplusplus */
27
struct _ccd_support_t {
28
ccd_vec3_t v; //!< Support point in minkowski sum
29
ccd_vec3_t v1; //!< Support point in obj1
30
ccd_vec3_t v2; //!< Support point in obj2
32
typedef struct _ccd_support_t ccd_support_t;
34
_ccd_inline void ccdSupportCopy(ccd_support_t *, const ccd_support_t *s);
37
* Computes support point of obj1 and obj2 in direction dir.
38
* Support point is returned via supp.
40
void __ccdSupport(const void *obj1, const void *obj2,
41
const ccd_vec3_t *dir, const ccd_t *ccd,
46
_ccd_inline void ccdSupportCopy(ccd_support_t *d, const ccd_support_t *s)
53
#endif /* __cplusplus */
55
#endif /* __CCD_SUPPORT_H__ */