| 1 |
/************************************************************************* |
| 2 |
* Copyright (c) 2011 AT&T Intellectual Property |
| 3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
| 6 |
* https://www.eclipse.org/legal/epl-v10.html |
| 7 |
* |
| 8 |
* Contributors: Details at https://graphviz.org |
| 9 |
*************************************************************************/ |
| 10 |
|
| 11 |
#pragma once |
| 12 |
|
| 13 |
#include "pathplan.h" |
| 14 |
#include <stdbool.h> |
| 15 |
|
| 16 |
#ifdef __cplusplus |
| 17 |
extern "C" { |
| 18 |
#endif |
| 19 |
|
| 20 |
#ifdef GVDLL |
| 21 |
#ifdef PATHPLAN_EXPORTS |
| 22 |
#define PATHUTIL_API __declspec(dllexport) |
| 23 |
#else |
| 24 |
#define PATHUTIL_API __declspec(dllimport) |
| 25 |
#endif |
| 26 |
#endif |
| 27 |
|
| 28 |
#ifndef PATHUTIL_API |
| 29 |
#define PATHUTIL_API /* nothing */ |
| 30 |
#endif |
| 31 |
typedef double COORD; |
| 32 |
PATHUTIL_API COORD area2(Ppoint_t, Ppoint_t, Ppoint_t); |
| 33 |
PATHUTIL_API int wind(Ppoint_t a, Ppoint_t b, Ppoint_t c); |
| 34 |
PATHUTIL_API COORD dist2(Ppoint_t, Ppoint_t); |
| 35 |
|
| 36 |
PATHUTIL_API bool in_poly(const Ppoly_t poly, Ppoint_t q); |
| 37 |
|
| 38 |
#undef PATHUTIL_API |
| 39 |
#ifdef __cplusplus |
| 40 |
} |
| 41 |
#endif |