Go to the documentation of this file.
16 namespace GeometryTraits {
21 template<
typename GeometryTraits >
27 Vector result(v1[0] + v2[0], v1[1] + v2[1], v1[2] + v2[2]);
34 template<
typename GeometryTraits >
40 Point result(p[0] + v[0], p[1] + v[1], p[2] + v[2]);
47 template<
typename GeometryTraits >
53 Point result(p[0] - v[0], p[1] - v[1], p[2] - v[2]);
60 template<
typename GeometryTraits >
66 Vector result(p1[0] - p2[0], p1[1] - p2[1], p1[2] - p2[2]);
73 template<
typename GeometryTraits >
79 Vector result(v1[0] - v2[0], v1[1] - v2[1], v1[2] - v2[2]);
86 template<
typename GeometryTraits >
87 typename GeometryTraits::Scalar
91 return v1[0] * v2[0] + v1[1] * v2[1] + v1[2] * v2[2];
GeometryTraits::Vector sub_p(const typename GeometryTraits::Point &p1, const typename GeometryTraits::Point &p2)
Returns point P1 minus point P2.
GeometryTraits::Point sub_pv(const typename GeometryTraits::Point &p, const typename GeometryTraits::Vector &v)
Returns point P minus vector V.
GeometryTraits::Scalar dot_product(const typename GeometryTraits::Vector &v1, const typename GeometryTraits::Vector &v2)
Returns the dot product of vectors V1 and V2.
Interfaces for plugins These interfaces will be used for different plugins.
GeometryTraits::Vector sub_v(const typename GeometryTraits::Vector &v1, const typename GeometryTraits::Vector &v2)
Returns vector V1 minus vector V2.
GeometryTraits::Point add_pv(const typename GeometryTraits::Point &p, const typename GeometryTraits::Vector &v)
Returns the sum of point P and vector V.
GeometryTraits::Vector add_v(const typename GeometryTraits::Vector &v1, const typename GeometryTraits::Vector &v2)
Returns the sum of vectors V1 and V2.