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
11  const VectorXD<2, ScalarT>& p2,
12  const VectorXD<2, ScalarT>& c)
13  {
14  return ((p1[0] - c[0]) * (p2[1] - c[1])) - ((p1[1] - c[1]) * (p2[0] - c[0]));
15  }
16 }; // namespace GfxTL
17 
18 #endif
GfxTL::VectorXD
Definition: MatrixXX.h:24
GfxTL::Orientation
ScalarT Orientation(const VectorXD< 2, ScalarT > &p1, const VectorXD< 2, ScalarT > &p2, const VectorXD< 2, ScalarT > &c)
Definition: Orientation.h:10
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:46
VectorXD.h
GfxTL
Definition: AABox.h:9