Lines Matching defs:radius
1029 // Test that a circle rrect has an inner bounds area equal to 2*radius^2
1030 float radius = 5.f;
1031 SkRect inner = SkRRectPriv::InnerBounds(SkRRect::MakeOval(SkRect::MakeWH(2.f * radius,
1032 2.f * radius)));
1034 2.f * radius * radius, kEpsilon));
1041 (2.f * radius * radius) + // area in the 4 circular corners
1042 (width-2.f*radius) * (height-2.f*radius) + // inner area excluding corners and edges
1043 SK_ScalarSqrt2 * radius * (width-2.f*radius) + // two horiz. rects between corners
1044 SK_ScalarSqrt2 * radius * (height-2.f*radius); // two vert. rects between corners
1046 inner = SkRRectPriv::InnerBounds(SkRRect::MakeRectXY(r, radius, radius));
1050 // Test that a rrect with a small y radius but large x radius selects the horizontal interior
1051 SkRRect rr = SkRRect::MakeRectXY(r, 2.f * radius, 0.1f * radius);
1053 SkRect::MakeLTRB(0.f, 0.1f * radius, width, height - 0.1f * radius));
1055 rr = SkRRect::MakeRectXY(r, 0.1f * radius, 2.f * radius);
1057 SkRect::MakeLTRB(0.1f * radius, 0.f, width - 0.1f * radius, height));
1259 // Another variant of corners overlapping, this is two circles of radius r that overlap by r