2019-07-29 04:44:15 -07:00
|
|
|
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
|
|
|
|
* ##### # # # *
|
|
|
|
* #### ##### ###### # # # # # # # *
|
|
|
|
* # # # # # ## # # # # # *
|
|
|
|
* # # # # ##### # # # # #### # ### *
|
|
|
|
* # # ##### # # # # # # # # # # *
|
|
|
|
* # # # # # ## # # # # # # *
|
|
|
|
* #### # ###### # # ##### ##### # # *
|
|
|
|
* *
|
|
|
|
* This file is part of openGJK. *
|
|
|
|
* *
|
|
|
|
* openGJK is free software: you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or *
|
|
|
|
* any later version. *
|
|
|
|
* *
|
|
|
|
* openGJK is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See The *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with Foobar. If not, see <https://www.gnu.org/licenses/>. *
|
|
|
|
* *
|
|
|
|
* openGJK: open-source Gilbert-Johnson-Keerthi algorithm *
|
|
|
|
* Copyright (C) Mattia Montanari 2018 - 2019 *
|
|
|
|
* http://iel.eng.ox.ac.uk/?page_id=504 *
|
|
|
|
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
2018-11-13 14:17:15 -08:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#ifndef CGJK_PREDICATES_H
|
|
|
|
#define CGJK_PREDICATES_H
|
|
|
|
|
|
|
|
#endif //CGJK_PREDICATES_H
|
|
|
|
|
|
|
|
extern double orient3d(
|
|
|
|
double *pa,
|
|
|
|
double *pb,
|
|
|
|
double *pc,
|
|
|
|
double *pd
|
|
|
|
);
|
|
|
|
|
|
|
|
extern double orient2d(
|
|
|
|
double *pa,
|
|
|
|
double *pb,
|
|
|
|
double *pc
|
|
|
|
);
|
|
|
|
|
|
|
|
extern void exactinit();
|