From 113805c78a232cf2c5c78dd89a2bb11f93537472 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 12 Aug 2007 13:17:37 +0000 Subject: [PATCH] From Jean-Sebastien Guay, "adds osgUtil::LineSegmentIntersector::setStart(osg::Vec3d) and setEnd(osg::Vec3d)." --- include/osgUtil/LineSegmentIntersector | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/osgUtil/LineSegmentIntersector b/include/osgUtil/LineSegmentIntersector index aa0eca0f7..7f5692049 100644 --- a/include/osgUtil/LineSegmentIntersector +++ b/include/osgUtil/LineSegmentIntersector @@ -72,6 +72,9 @@ class OSGUTIL_EXPORT LineSegmentIntersector : public Intersector inline Intersections& getIntersections() { return _parent ? _parent->_intersections : _intersections; } inline Intersection getFirstIntersection() { Intersections& intersections = getIntersections(); return intersections.empty() ? Intersection() : *(intersections.begin()); } + + inline void setStart(const osg::Vec3d& start) { _start = start; } + inline void setEnd(const osg::Vec3d& end) { _end = end; } public: