Lines Matching refs:vec2
230 Mesh::VertexArray<vec2>& position, in fillInCircleVerts()
244 vec2 center = vec2(bounds.getWidth() / 2.0f, bounds.getHeight() / 2.0f); in fillInCircleVerts()
249 position[vertexCount] = center + vec2(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
254 position[vertexCount] = center + vec2(octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
259 position[vertexCount] = center + vec2(halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
264 position[vertexCount] = center + vec2(halfWidth, octOffset * halfWidth); in fillInCircleVerts()
269 position[vertexCount] = center + vec2(octOffset * halfWidth, halfWidth); in fillInCircleVerts()
274 position[vertexCount] = center + vec2(-octOffset * halfWidth, halfWidth); in fillInCircleVerts()
279 position[vertexCount] = center + vec2(-halfWidth, octOffset * halfWidth); in fillInCircleVerts()
284 position[vertexCount] = center + vec2(-halfWidth, -octOffset * halfWidth); in fillInCircleVerts()
297 position[vertexCount] = center + vec2(-s * r, -c * r); in fillInCircleVerts()
302 position[vertexCount] = center + vec2(s * r, -c * r); in fillInCircleVerts()
307 position[vertexCount] = center + vec2(c * r, -s * r); in fillInCircleVerts()
312 position[vertexCount] = center + vec2(c * r, s * r); in fillInCircleVerts()
317 position[vertexCount] = center + vec2(s * r, c * r); in fillInCircleVerts()
322 position[vertexCount] = center + vec2(-s * r, c * r); in fillInCircleVerts()
327 position[vertexCount] = center + vec2(-c * r, s * r); in fillInCircleVerts()
332 position[vertexCount] = center + vec2(-c * r, -s * r); in fillInCircleVerts()
345 static void fillInRRectVerts(const Geometry& args, Mesh::VertexArray<vec2>& position, in fillInRRectVerts()
382 vec2 outerVec = vec2(outerRadius - umbraInset, -outerRadius - umbraInset); in fillInRRectVerts()
389 vec2 diagVec = vec2(diagVal, diagVal); in fillInRRectVerts()
396 position[vertexCount] = vec2(xInner[i], yInner[i]); in fillInRRectVerts()
402 position[vertexCount] = vec2(xOuter[i], yInner[i]); in fillInRRectVerts()
407 position[vertexCount] = vec2(xOuter[i], yMid[i]); in fillInRRectVerts()
412 position[vertexCount] = vec2(xOuter[i], yOuter[i]); in fillInRRectVerts()
417 position[vertexCount] = vec2(xMid[i], yOuter[i]); in fillInRRectVerts()
422 position[vertexCount] = vec2(xInner[i], yOuter[i]); in fillInRRectVerts()
436 position[vertexCount] = vec2(bounds.left + inset, bounds.top + inset); in fillInRRectVerts()
442 position[vertexCount] = vec2(bounds.right - inset, bounds.top + inset); in fillInRRectVerts()
448 position[vertexCount] = vec2(bounds.left + inset, bounds.bottom - inset); in fillInRRectVerts()
454 position[vertexCount] = vec2(bounds.right - inset, bounds.bottom - inset); in fillInRRectVerts()
478 Mesh::VertexArray<vec2> position, Mesh::VertexArray<vec4> shadowColor, in fillVerticesForGeometry()
504 float lightRadius, float& blurRadius, float& scale, vec2& translate) { in GetSpotParams()
580 vec2 spotOffset; in getSpotShadowGeometry()
625 vec2 upperLeftOffset = vec2(spotShadowRect.left - casterRect.left + dr, in getSpotShadowGeometry()
627 vec2 lowerRightOffset = vec2(spotShadowRect.right - casterRect.right - dr, in getSpotShadowGeometry()