Orientation.h
Go to the documentation of this file.
1 #ifndef GfxTL__ORIENTATION_HEADER__
2 #define GfxTL__ORIENTATION_HEADER__
3 
4 #include <GfxTL/VectorXD.h>
5 
6 namespace GfxTL
7 {
8  template< class ScalarT >
9  inline ScalarT Orientation(const VectorXD< 2, ScalarT >& p1,
10  const VectorXD< 2, ScalarT >& p2,
12  {
13  return ((p1[0] - c[0]) * (p2[1] - c[1])) -
14  ((p1[1] - c[1]) * (p2[0] - c[0]));
15  }
16 };
17 
18 #endif
GfxTL::VectorXD
Definition: MatrixXX.h:21
GfxTL::Orientation
ScalarT Orientation(const VectorXD< 2, ScalarT > &p1, const VectorXD< 2, ScalarT > &p2, const VectorXD< 2, ScalarT > &c)
Definition: Orientation.h:9
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
VectorXD.h
GfxTL
Definition: AABox.h:8