Re: [fxtf-drafts] [geometry-2] Proposal: Geometry Utility Methods (#602)

Have you considered using the [`Path2D`](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/) API instead? It is currently opaque but it's always been planned that someday we expose its internals and add methods such as intersections to it.   

Might be an overkill for the simple "is my point in rect", but it seems that for the most complex cases that would be a better place for these features.  
I guess a `toPath2D()` would then make a nice addition to the `DOMRect` and `DOMQuad` interfaces (or a `from???` on the `Path2D` if it's better that way).

-- 
GitHub Notification of comment by Kaiido
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/602#issuecomment-3067427077 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 14 July 2025 00:21:48 UTC