Lines Matching refs:cos
25 SkScalar cos, sin; in draw_fins() local
28 sin = SkScalarSinCos(angle + (SK_ScalarPI/4), &cos); in draw_fins()
30 cos *= kRadius / 2.0f; in draw_fins()
34 p.lineTo(offset.fX + cos, offset.fY + sin); in draw_fins()
38 sin = SkScalarSinCos(angle - (SK_ScalarPI/4), &cos); in draw_fins()
40 cos *= kRadius / 2.0f; in draw_fins()
44 p.lineTo(offset.fX + cos, offset.fY + sin); in draw_fins()
53 SkScalar sin, cos, angle = 0.0f; in draw_snowflake() local
55 sin = SkScalarSinCos(angle, &cos); in draw_snowflake()
57 cos *= kRadius; in draw_snowflake()
61 p.moveTo(-cos, -sin); in draw_snowflake()
62 p.lineTo(cos, sin); in draw_snowflake()
66 const SkPoint posOffset = SkPoint::Make(0.5f * cos, 0.5f * sin); in draw_snowflake()
70 const SkPoint negOffset = SkPoint::Make(-0.5f * cos, -0.5f * sin); in draw_snowflake()