8 #ifndef META_OCEAN_GEOMETRY_PERSPECTIVE_POSE_H
9 #define META_OCEAN_GEOMETRY_PERSPECTIVE_POSE_H
58 static inline T calculateCosineResults(
const T x1,
const T x1_2,
const T x2,
const T x2_2,
const T cos12,
const T d12_2);
64 return x1_2 + x2_2 - 2 * x1 * x2 * cos12 - d12_2;
This class is the base class for all perspective pose classes.
Definition: PerspectivePose.h:27
static T calculateCosineResults(const T x1, const T x1_2, const T x2, const T x2_2, const T cos12, const T d12_2)
Returns the result of the law of cosines.
Definition: PerspectivePose.h:62
static bool calculateCosineSolutions(const T x1, const T x1_2, const T cos12, const T d12_2, T &x2a, T &x2b)
Calculates the two possible solutions for the law of cosines.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15