19 #ifndef GEOMETRY__COMMON_3D_HPP_ 20 #define GEOMETRY__COMMON_3D_HPP_ 36 template<
typename T1,
typename T2>
37 inline auto dot_3d(
const T1 & pt,
const T2 & q)
42 return (
x_(pt) *
x_(q)) + (
y_(pt) *
y_(q) +
z_(pt) *
z_(q));
49 #endif // GEOMETRY__COMMON_3D_HPP_ This file includes common functionality for 2D geometry, such as dot products.
auto z_(const PointT &pt)
Gets the z value for a point.
Definition: common_2d.hpp:65
auto dot_3d(const T1 &pt, const T2 &q)
compute p * q = p1 * q1 + p2 * q2 + p3 * 13
Definition: common_3d.hpp:37
auto x_(const PointT &pt)
Gets the x value for a point.
Definition: common_2d.hpp:47
auto y_(const PointT &pt)
Gets the y value for a point.
Definition: common_2d.hpp:56
This file defines the lanelet2_map_provider_node class.
Definition: quick_sort.hpp:24