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,
11
const
VectorXD< 2, ScalarT >
&
c
)
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
VisionX
components
pointcloud_processor
EfficientRANSACPrimitiveExtractor
EfficientRANSAC
GfxTL
Orientation.h
Generated on Sat Oct 12 2024 09:14:17 for armarx_documentation by
1.8.17