Lines Matching defs:quad
51 SubtargetGeometry(Node* node, const FloatQuad& quad)
53 , m_quad(quad)
58 FloatQuad quad() const { return m_quad; }
403 FloatQuad quad = geom.quad();
405 if (quad.isRectilinear()) {
421 // The following code tries to adjust the point to place inside a both the touchArea and the non-rectilinear quad.
422 // FIXME: This will return the point inside the touch area that is the closest to the quad center, but does not
423 // guarantee that the point will be inside the quad. Corner-cases exist where the quad will intersect but this
426 // Convert quad from content to window coordinates.
427 FloatPoint p1 = contentsToWindow(view, quad.p1());
428 FloatPoint p2 = contentsToWindow(view, quad.p2());
429 FloatPoint p3 = contentsToWindow(view, quad.p3());
430 FloatPoint p4 = contentsToWindow(view, quad.p4());
431 quad = FloatQuad(p1, p2, p3, p4);
433 if (quad.containsPoint(touchPoint)) {
439 FloatPoint center = quad.center();
444 return quad.containsPoint(adjustedPoint);