pathutil.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #pragma once
  11. #include "pathplan.h"
  12. #include <stdbool.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #ifdef GVDLL
  17. #ifdef PATHPLAN_EXPORTS
  18. #define PATHUTIL_API __declspec(dllexport)
  19. #else
  20. #define PATHUTIL_API __declspec(dllimport)
  21. #endif
  22. #endif
  23. #ifndef PATHUTIL_API
  24. #define PATHUTIL_API /* nothing */
  25. #endif
  26. typedef double COORD;
  27. PATHUTIL_API COORD area2(Ppoint_t, Ppoint_t, Ppoint_t);
  28. PATHUTIL_API int wind(Ppoint_t a, Ppoint_t b, Ppoint_t c);
  29. PATHUTIL_API COORD dist2(Ppoint_t, Ppoint_t);
  30. PATHUTIL_API bool in_poly(const Ppoly_t poly, Ppoint_t q);
  31. #undef PATHUTIL_API
  32. #ifdef __cplusplus
  33. }
  34. #endif