fw4spl
LineFunctions.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2016.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWMATH_LINEFUNCTIONS_HPP__
8 #define __FWMATH_LINEFUNCTIONS_HPP__
9 
10 #include "fwMath/IntrasecTypes.hpp"
11 #include "fwMath/config.hpp"
12 
13 #include <fwCore/base.hpp>
14 
15 namespace fwMath
16 {
17 
18 //------------------------------------------------------------------------------
19 
41 FWMATH_API bool getClosestPoints( const fwLine& _ray1, const fwLine& _ray2,
42  fwVec3d& _pointOnThis, fwVec3d& _pointOnfwLine);
43 
50 FWMATH_API fwVec3d getClosestPoint( const fwLine& _ray, const fwVec3d& _point);
51 
59 FWMATH_API bool intersect(const fwLine& _ray, double _radius, const fwVec3d& _point);
60 
70 FWMATH_API bool intersect(const fwLine& _line, double _radius, const fwVec3d& _origin, const fwVec3d& _direction,
71  fwVec3d& _point);
72 
85 FWMATH_API bool intersect( const fwLine& _line, const fwVec3d& _v1, const fwVec3d& _v2, const fwVec3d& _v3,
86  fwVec3d& _point, fwVec3d& _barycentric, bool& _front);
87 
88 }
89 
90 #endif /* __FWMATH_LINEFUNCTIONS_HPP__ */
FWMATH_API fwVec3d getClosestPoint(const fwLine &_ray, const fwVec3d &_point)
Compute the projection of a point in a given direction.
The namespace fwMath contains classes which provide the implementation of several mathematic function...
Definition: Compare.hpp:12
FWMATH_API bool getClosestPoints(const fwLine &_ray1, const fwLine &_ray2, fwVec3d &_pointOnThis, fwVec3d &_pointOnfwLine)
Compute the closest points between two rays.
FWMATH_API bool intersect(const fwLine &_ray, double _radius, const fwVec3d &_point)
Compute the projection of a point in a given direction and test if this intersection is inside a give...