Lines Matching full:vec2
87 inline vec2 totalOffsetFromNormals(const vec2& normalA, const vec2& normalB) {
127 inline void scaleOffsetForStrokeWidth(vec2& offset) const {
141 inline vec2 deriveAAOffset(const vec2& offset) const {
142 return vec2(offset.x * 0.5f * inverseScaleX,
195 vec2 lastNormal(current->position[1] - last->position[1],
200 vec2 nextNormal(next->position[1] - current->position[1],
204 vec2 totalOffset = totalOffsetFromNormals(lastNormal, nextNormal);
263 vec2 beginRadialOffset(cos(beginTheta), sin(beginTheta));
270 vec2 endRadialOffset(cos(endTheta), sin(endTheta));
280 vec2 lastNormal;
283 vec2 nextNormal(next->position[1] - current->position[1],
287 vec2 totalOffset;
307 vec2 totalOffset = lastNormal;
339 vec2 lastNormal(current->position[1] - last->position[1],
344 vec2 nextNormal(next->position[1] - current->position[1],
350 vec2 totalOffset = paintInfo.deriveAAOffset(totalOffsetFromNormals(lastNormal, nextNormal));
393 AlphaVertex* buffer, bool isFirst, vec2 normal, int offset) {
402 vec2 AAOffset = paintInfo.deriveAAOffset(normal);
404 vec2 strokeOffset = normal;
406 vec2 outerOffset = strokeOffset + AAOffset;
407 vec2 innerOffset = strokeOffset - AAOffset;
409 vec2 capAAOffset;
413 capAAOffset = vec2(-AAOffset.y, AAOffset.x);
418 vec2 referencePoint(point->position[0], point->position[1]);
422 referencePoint += vec2(-strokeOffset.y, strokeOffset.x);
455 vec2 radialOffset(cos(theta), sin(theta));
578 vec2 lastNormal(current->position[1] - last->position[1],
587 vec2 nextNormal(next->position[1] - current->position[1],
591 vec2 totalOffset = totalOffsetFromNormals(lastNormal, nextNormal);
592 vec2 AAOffset = paintInfo.deriveAAOffset(totalOffset);
594 vec2 innerOffset = totalOffset;
596 vec2 outerOffset = innerOffset + AAOffset;
648 vec2 lastNormal(current->position[1] - last->position[1],
653 vec2 nextNormal(next->position[1] - current->position[1],
657 vec2 totalOffset = totalOffsetFromNormals(lastNormal, nextNormal);
658 vec2 AAOffset = paintInfo.deriveAAOffset(totalOffset);
660 vec2 innerOffset = totalOffset;
662 vec2 outerOffset = innerOffset + AAOffset;