libigl v2.5.0
Loading...
Searching...
No Matches
point_inside_convex_polygon.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2019 Hanxiao Shen <hanxiao@cs.nyu.edu>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8
9#ifndef IGL_PREDICATES_POINT_INSIDE_CONVEX_POLYGON_H
10#define IGL_PREDICATES_POINT_INSIDE_CONVEX_POLYGON_H
11
12
13
14#include "../igl_inline.h"
15#include <Eigen/Core>
16#include "predicates.h"
17
18namespace igl
19{
20 namespace predicates
21 {
26 template <typename DerivedP, typename DerivedQ>
28 const Eigen::MatrixBase<DerivedP>& P,
29 const Eigen::MatrixBase<DerivedQ>& q
30 );
31 }
32}
33
34#ifndef IGL_STATIC_LIBRARY
35# include "point_inside_convex_polygon.cpp"
36#endif
37
38#endif
#define IGL_INLINE
Definition igl_inline.h:15
bool point_inside_convex_polygon(const Eigen::MatrixBase< DerivedP > &P, const Eigen::MatrixBase< DerivedQ > &q)
check whether 2d point lies inside 2d convex polygon
Definition AABB.h:17