intersect.hpp
Go to the documentation of this file.
1 
39 #pragma once
40 
41 // Dependency:
42 #include "../glm.hpp"
43 #include "../gtx/closest_point.hpp"
44 
45 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
46 # pragma message("GLM: GLM_GTX_closest_point extension included")
47 #endif
48 
49 namespace glm
50 {
53 
57  template <typename genType>
59  genType const & orig, genType const & dir,
60  genType const & planeOrig, genType const & planeNormal,
61  typename genType::value_type & intersectionDistance);
62 
65  template <typename genType>
67  genType const & orig, genType const & dir,
68  genType const & vert0, genType const & vert1, genType const & vert2,
69  genType & baryPosition);
70 
73  template <typename genType>
75  genType const & orig, genType const & dir,
76  genType const & vert0, genType const & vert1, genType const & vert2,
77  genType & position);
78 
82  template <typename genType>
84  genType const & rayStarting, genType const & rayNormalizedDirection,
85  genType const & sphereCenter, typename genType::value_type const sphereRadiusSquered,
86  typename genType::value_type & intersectionDistance);
87 
90  template <typename genType>
92  genType const & rayStarting, genType const & rayNormalizedDirection,
93  genType const & sphereCenter, const typename genType::value_type sphereRadius,
94  genType & intersectionPosition, genType & intersectionNormal);
95 
98  template <typename genType>
100  genType const & point0, genType const & point1,
101  genType const & sphereCenter, typename genType::value_type sphereRadius,
102  genType & intersectionPosition1, genType & intersectionNormal1,
103  genType & intersectionPosition2 = genType(), genType & intersectionNormal2 = genType());
104 
106 }//namespace glm
107 
108 #include "intersect.inl"
glm::intersectRayPlane
GLM_FUNC_DECL bool intersectRayPlane(genType const &orig, genType const &dir, genType const &planeOrig, genType const &planeNormal, typename genType::value_type &intersectionDistance)
glm::intersectRayTriangle
GLM_FUNC_DECL bool intersectRayTriangle(genType const &orig, genType const &dir, genType const &vert0, genType const &vert1, genType const &vert2, genType &baryPosition)
glm
Definition: _literals.hpp:31
glm::intersectLineTriangle
GLM_FUNC_DECL bool intersectLineTriangle(genType const &orig, genType const &dir, genType const &vert0, genType const &vert1, genType const &vert2, genType &position)
glm::intersectLineSphere
GLM_FUNC_DECL bool intersectLineSphere(genType const &point0, genType const &point1, genType const &sphereCenter, typename genType::value_type sphereRadius, genType &intersectionPosition1, genType &intersectionNormal1, genType &intersectionPosition2=genType(), genType &intersectionNormal2=genType())
glm::intersectRaySphere
GLM_FUNC_DECL bool intersectRaySphere(genType const &rayStarting, genType const &rayNormalizedDirection, genType const &sphereCenter, typename genType::value_type const sphereRadiusSquered, typename genType::value_type &intersectionDistance)
GLM_FUNC_DECL
#define GLM_FUNC_DECL
Definition: setup.hpp:728


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:11