diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/FloatQuad.h')
-rw-r--r-- | Source/WebCore/platform/graphics/FloatQuad.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/FloatQuad.h b/Source/WebCore/platform/graphics/FloatQuad.h index 44d2e9dd9..a9d9096f2 100644 --- a/Source/WebCore/platform/graphics/FloatQuad.h +++ b/Source/WebCore/platform/graphics/FloatQuad.h @@ -92,6 +92,11 @@ public: // This only works for convex quads. bool intersectsRect(const FloatRect&) const; + // Test whether any part of the circle/ellipse intersects with this quad. + // Note that these two functions only work for convex quads. + bool intersectsCircle(const FloatPoint& center, float radius) const; + bool intersectsEllipse(const FloatPoint& center, const FloatSize& radii) const; + // The center of the quad. If the quad is the result of a affine-transformed rectangle this is the same as the original center transformed. FloatPoint center() const { |