<div>*I wrote it using a translator. Please understand if there is any awkwardness in the sentence.*</div><div><br></div><div>One object is moving in the path A -> B, B->C, C-D (using AnimationPath).</div><div><br></div><div>And I need to know in what path the moving object is moving.</div><div><br></div><div>I think you need to know if the line and point intersect to figure this out.</div><div>I thought I should use LineSegmentIntersection to check whether a line and a point intersect.</div><div>I found the part in LineSegmentIntersection that sets the line (path) coordinates, but I don't find a function to check if the LineSegmentIntersection and point intersect.</div><div><br></div><div>-------example--------</div><div>osg::Vec3d start(128.0, 37.0, 250);       //wgs84, longitude, latitude, altitude</div><div>osg::Vec3d end(128.0, 37.0005, 750);  //wgs84, longitude, latitude, altitude</div><div><br></div><div>osg::ref_ptr<osg::Utill::LineSegmentIntersector> lis = NULL;</div><div>lis = new osgEarth::DPLineSegmentIntersector(start, end)</div><div>osgUtill::IntersectionVisitor iv(lis.get())</div><div><br></div><div>------------------------------------------</div><div><br></div><div>----------------------------------------------</div><div>osg::ref_ptr<osg::Node> node = _node</div><div>node->accept(iv);</div><div>if(lis->containsIntersections())</div><div>{</div><div>  ......................................</div><div><br></div><div>------------------------------------------------</div><div>I tried running it in the same way as above, but there was no true result even though the object coordinates belong to the line coordinates.</div><div>  I think the part of setting the point coordinates in that code is wrong. How do I set the point coordinates to get the desired result?</div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/ff9f8914-3012-4e37-85bf-ed286189c6e4n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/ff9f8914-3012-4e37-85bf-ed286189c6e4n%40googlegroups.com</a>.<br />