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
6namespace GfxTL
7{
8 template <class ScalarT>
9 inline ScalarT
11 const VectorXD<2, ScalarT>& p2,
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
constexpr T c
Definition AABox.h:10
ScalarT Orientation(const VectorXD< 2, ScalarT > &p1, const VectorXD< 2, ScalarT > &p2, const VectorXD< 2, ScalarT > &c)
Definition Orientation.h:10