// Looser version of IsSimpleCircular, where the x & y values of the radii // only have to be nearly equal instead of strictly equal. staticbool IsNearlySimpleCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero);
// Test if a point is in the rrect, if it were a closed set. staticbool ContainsPoint(const SkRRect& rr, const SkPoint& p) { return rr.getBounds().contains(p.fX, p.fY) && rr.checkCornerContainment(p.fX, p.fY);
}
// Compute an approximate largest inscribed bounding box of the rounded rect. For empty, // rect, oval, and simple types this will be the largest inscribed rectangle. Otherwise it may // not be the global maximum, but will be non-empty, touch at least one edge and be contained // in the round rect. static SkRect InnerBounds(const SkRRect& rr);
// Attempt to compute the intersection of two round rects. The intersection is not necessarily // a round rect. This returns intersections only when the shape is representable as a new // round rect (or rect). Empty is returned if 'a' and 'b' do not intersect or if the // intersection is too complicated. This is conservative, it may not always detect that an // intersection could be represented as a round rect. However, when it does return a round rect // that intersection will be exact (i.e. it is NOT just a subset of the actual intersection). static SkRRect ConservativeIntersect(const SkRRect& a, const SkRRect& b);
};
#endif
Messung V0.5
¤ Dauer der Verarbeitung: 0.33 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.