yes, the SVGSVGElement has two methods:
SVGSVGElement.checkIntersection( element, rect ) and SVGSVGElement.getIntersectionList( rect, referenceElement ) the first method returns a boolean, the second method returns a nodeList see more at http://phrogz.net/ObjJob/search.asp?langID=1&q=intersect or in the SVG spec. The problem is that currently (correct me if I am wrong) only Batik implements these methods. For the other viewers that don't support these methods you would have to test it yourself using javascript. You would first test the boundingboxes and if it matches test the coordinates themselves. For parsing the geometry I recommend using Kevin Lindseys path parser. Andreas --- In svg-developers@yahoogroups.com, "Sayed Arian Kooshesh" <[EMAIL PROTECTED]> wrote: > > Are there any svg javascript functions that can tell if a path and rect have > intersected? I've done some small math with the boundingboxes but I don't > think it's as accurate as I want. > > google isn't saying anything. > > -- > "Art manifests desire in the imagination, but machines are an attempt to > manifest desire in reality" > > > [Non-text portions of this message have been removed] > ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/