Lines Matching full:vec2
87 inline static 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);
228 const vec2& normal, Vertex* buffer, int& currentIndex, bool begin) {
229 vec2 strokeOffset = normal;
232 vec2 referencePoint(center.position[0], center.position[1]);
234 referencePoint += vec2(-strokeOffset.y, strokeOffset.x) * (begin ? -1 : 1);
275 vec2 beginRadialOffset(cos(beginTheta), sin(beginTheta));
282 vec2 endRadialOffset(cos(endTheta), sin(endTheta));
293 vec2 lastNormal(current->position[1] - last->position[1],
301 vec2 nextNormal(next->position[1] - current->position[1],
305 vec2 strokeOffset = totalOffsetFromNormals(lastNormal, nextNormal);
308 vec2 center(current->position[0], current->position[1]);
340 vec2 lastNormal(current->position[1] - last->position[1],
345 vec2 nextNormal(next->position[1] - current->position[1],
351 vec2 totalOffset = paintInfo.deriveAAOffset(totalOffsetFromNormals(lastNormal, nextNormal));
394 AlphaVertex* buffer, bool isFirst, vec2 normal, int offset) {
403 vec2 AAOffset = paintInfo.deriveAAOffset(normal);
405 vec2 strokeOffset = normal;
407 vec2 outerOffset = strokeOffset + AAOffset;
408 vec2 innerOffset = strokeOffset - AAOffset;
410 vec2 capAAOffset;
414 capAAOffset = vec2(-AAOffset.y, AAOffset.x);
419 vec2 referencePoint(point->position[0], point->position[1]);
423 referencePoint += vec2(-strokeOffset.y, strokeOffset.x);
456 vec2 radialOffset(cos(theta), sin(theta));
579 vec2 lastNormal(current->position[1] - last->position[1],
588 vec2 nextNormal(next->position[1] - current->position[1],
592 vec2 totalOffset = totalOffsetFromNormals(lastNormal, nextNormal);
593 vec2 AAOffset = paintInfo.deriveAAOffset(totalOffset);
595 vec2 innerOffset = totalOffset;
597 vec2 outerOffset = innerOffset + AAOffset;
649 vec2 lastNormal(current->position[1] - last->position[1],
654 vec2 nextNormal(next->position[1] - current->position[1],
658 vec2 totalOffset = totalOffsetFromNormals(lastNormal, nextNormal);
659 vec2 AAOffset = paintInfo.deriveAAOffset(totalOffset);
661 vec2 innerOffset = totalOffset;
663 vec2 outerOffset = innerOffset + AAOffset;