Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: ui/gfx/geometry/quad_f.h

Issue 291493003: Optimize QuadF's PointIsInTriangle function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment with equations Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gfx/geometry/quad_f.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/quad_f.h
diff --git a/ui/gfx/geometry/quad_f.h b/ui/gfx/geometry/quad_f.h
index 4cb57132ad0a07da4708d7bd63b16ff26f8abb9d..25f8b2b34b36867f5d1d92d35fff18c004aa417a 100644
--- a/ui/gfx/geometry/quad_f.h
+++ b/ui/gfx/geometry/quad_f.h
@@ -52,7 +52,7 @@ class GFX_EXPORT QuadF {
bool IsCounterClockwise() const;
// Returns true if the |point| is contained within the quad, or lies on on
- // edge of the quad.
+ // edge of the quad. This assumes that the quad is convex.
bool Contains(const gfx::PointF& point) const;
// Returns a rectangle that bounds the four points of the quad. The points of
« no previous file with comments | « no previous file | ui/gfx/geometry/quad_f.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698