Method CheckIntersection
- Namespace
- SharpVectors.Dom.Svg
- Assembly
- SharpVectors.Core.dll
CheckIntersection(ISvgElement, ISvgRect)
Returns true if the rendered content of the given element intersects the supplied rectangle, honoring the 'pointer-events' property value on each candidate graphics element.
bool CheckIntersection(ISvgElement element, ISvgRect rect)
Parameters
element
ISvgElementThe element on which to perform the given test.
rect
ISvgRectThe test rectangle. The values are in the initial coordinate system for the current 'svg' element.
Returns
- bool
True or false, depending on whether the given element intersects the supplied rectangle.