Home
last modified time | relevance | path

Searched refs:kRoot3Over2 (Results 1 – 2 of 2) sorted by relevance

/external/skia/gm/
Doccludedrrectblur.cpp275 constexpr SkScalar kRoot3Over2 = 0.8660254037844386f; in onDraw() local
278 SkVector::Make(0.5f, kRoot3Over2), 120, center); in onDraw()
280 SkVector::Make(kRoot3Over2, 0.5f), 120, center); in onDraw()
283 SkVector::Make(-0.5f, kRoot3Over2), 120, center); in onDraw()
285 SkVector::Make(-kRoot3Over2, 0.5f), 120, center); in onDraw()
288 SkVector::Make(-0.5f, -kRoot3Over2), 120, center); in onDraw()
290 SkVector::Make(-kRoot3Over2, -0.5f), 120, center); in onDraw()
293 SkVector::Make(0.5f, -kRoot3Over2), 120, center); in onDraw()
295 SkVector::Make(kRoot3Over2, -0.5f), 120, center); in onDraw()
Dmultipicturedraw.cpp17 constexpr SkScalar kRoot3Over2 = 0.86602545f; // sin(60) variable
24 constexpr int kPicHeight = (int)((kNumHexY - 0.5f) * 2 * kHexSide * kRoot3Over2 + 0.5f);
34 hex.rLineTo(SkScalarHalf(kHexSide), kRoot3Over2 * kHexSide); in make_hex_path()
36 hex.rLineTo(SkScalarHalf(kHexSide), -kHexSide * kRoot3Over2); in make_hex_path()
37 hex.rLineTo(-SkScalarHalf(kHexSide), -kHexSide * kRoot3Over2); in make_hex_path()
73 canvas->translate(xPos, yPos + ((x % 2) ? kRoot3Over2 * kHexSide : 0)); in make_hex_plane_picture()
81 yPos += 2 * kHexSide * kRoot3Over2; in make_hex_plane_picture()
123 canvas->translate(xPos, yPos + ((x % 2) ? kRoot3Over2 * kHexSide : 0)); in make_single_layer_hex_plane_picture()
134 yPos += 2 * kHexSide * kRoot3Over2; in make_single_layer_hex_plane_picture()
306 SkPath hex = make_hex_path((kNumHexX / 2.0f) * kHexSide, kNumHexY * kHexSide * kRoot3Over2); in path_clip()
[all …]