libigl v2.5.0
Loading...
Searching...
No Matches
orient2d.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 Qingnan Zhou <qnzhou@gmail.com>
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#pragma once
9#ifndef IGL_PREDICATES_ORIENT2D_H
10#define IGL_PREDICATES_ORIENT2D_H
11
12#include "../igl_inline.h"
13#include <Eigen/Core>
14#include "../Orientation.h"
15
16namespace igl {
17 namespace predicates {
28 template<
29 typename Derivedpa,
30 typename Derivedpb,
31 typename Derivedpc>
33 const Eigen::MatrixBase<Derivedpa>& pa,
34 const Eigen::MatrixBase<Derivedpb>& pb,
35 const Eigen::MatrixBase<Derivedpc>& pc);
44 template
45 <typename DerivedA,
46 typename DerivedB,
47 typename DerivedC,
48 typename DerivedR>
50 const Eigen::MatrixBase<DerivedA>& A,
51 const Eigen::MatrixBase<DerivedB>& B,
52 const Eigen::MatrixBase<DerivedC>& C,
53 Eigen::PlainObjectBase<DerivedR>& R);
54 }
55}
56
57#ifndef IGL_STATIC_LIBRARY
58#include "orient2d.cpp"
59#endif
60
61#endif
#define IGL_INLINE
Definition igl_inline.h:15
Orientation orient2d(const Eigen::MatrixBase< Derivedpa > &pa, const Eigen::MatrixBase< Derivedpb > &pb, const Eigen::MatrixBase< Derivedpc > &pc)
Compute the orientation of the triangle formed by pa, pb, pc.
Definition AABB.h:18
Orientation
Types of orientations and other predicate results.
Definition Orientation.h:20