Lines Matching refs:Vector2

92 inline static Vector2 totalOffsetFromNormals(const Vector2& normalA, const Vector2& normalB) {  in totalOffsetFromNormals()
131 inline void scaleOffsetForStrokeWidth(Vector2& offset) const { in scaleOffsetForStrokeWidth()
145 inline Vector2 deriveAAOffset(const Vector2& offset) const { in deriveAAOffset()
146 return (Vector2){offset.x * 0.5f * inverseScaleX, offset.y * 0.5f * inverseScaleY}; in deriveAAOffset()
215 Vector2 lastNormal = {current->y - last->y, last->x - current->x}; in getStrokeVerticesFromPerimeter()
219 Vector2 nextNormal = {next->y - current->y, current->x - next->x}; in getStrokeVerticesFromPerimeter()
222 Vector2 totalOffset = totalOffsetFromNormals(lastNormal, nextNormal); in getStrokeVerticesFromPerimeter()
245 const Vector2& normal, Vertex* buffer, int& currentIndex, bool begin) { in storeBeginEnd()
246 Vector2 strokeOffset = normal; in storeBeginEnd()
249 Vector2 referencePoint = {center.x, center.y}; in storeBeginEnd()
251 Vector2 rotated = {-strokeOffset.y, strokeOffset.x}; in storeBeginEnd()
292 Vector2 beginRadialOffset = {cosf(beginTheta), sinf(beginTheta)}; in getStrokeVerticesFromUnclosedVertices()
299 Vector2 endRadialOffset = {cosf(endTheta), sinf(endTheta)}; in getStrokeVerticesFromUnclosedVertices()
310 Vector2 lastNormal = {current->y - last->y, last->x - current->x}; in getStrokeVerticesFromUnclosedVertices()
317 Vector2 nextNormal = {next->y - current->y, current->x - next->x}; in getStrokeVerticesFromUnclosedVertices()
320 Vector2 strokeOffset = totalOffsetFromNormals(lastNormal, nextNormal); in getStrokeVerticesFromUnclosedVertices()
323 Vector2 center = {current->x, current->y}; in getStrokeVerticesFromUnclosedVertices()
356 Vector2 lastNormal = {current->y - last->y, last->x - current->x}; in getFillVerticesFromPerimeterAA()
360 Vector2 nextNormal = {next->y - current->y, current->x - next->x}; in getFillVerticesFromPerimeterAA()
365Vector2 totalOffset = paintInfo.deriveAAOffset(totalOffsetFromNormals(lastNormal, nextNormal)); in getFillVerticesFromPerimeterAA()
407 AlphaVertex* buffer, bool isFirst, Vector2 normal, int offset) { in storeCapAA()
416 Vector2 AAOffset = paintInfo.deriveAAOffset(normal); in storeCapAA()
418 Vector2 strokeOffset = normal; in storeCapAA()
420 Vector2 outerOffset = strokeOffset + AAOffset; in storeCapAA()
421 Vector2 innerOffset = strokeOffset - AAOffset; in storeCapAA()
423 Vector2 capAAOffset = {0, 0}; in storeCapAA()
427 capAAOffset = (Vector2){-AAOffset.y, AAOffset.x}; in storeCapAA()
432 Vector2 referencePoint = {point.x, point.y}; in storeCapAA()
436 Vector2 rotated = {-strokeOffset.y, strokeOffset.x}; in storeCapAA()
470 Vector2 radialOffset = {cosf(theta), sinf(theta)}; in storeCapAA()
593 Vector2 lastNormal = {current->y - last->y, last->x - current->x}; in getStrokeVerticesFromUnclosedVerticesAA()
601 Vector2 nextNormal = {next->y - current->y, current->x - next->x}; in getStrokeVerticesFromUnclosedVerticesAA()
604 Vector2 totalOffset = totalOffsetFromNormals(lastNormal, nextNormal); in getStrokeVerticesFromUnclosedVerticesAA()
605 Vector2 AAOffset = paintInfo.deriveAAOffset(totalOffset); in getStrokeVerticesFromUnclosedVerticesAA()
607 Vector2 innerOffset = totalOffset; in getStrokeVerticesFromUnclosedVerticesAA()
609 Vector2 outerOffset = innerOffset + AAOffset; in getStrokeVerticesFromUnclosedVerticesAA()
661 Vector2 lastNormal = {current->y - last->y, last->x - current->x}; in getStrokeVerticesFromPerimeterAA()
665 Vector2 nextNormal = {next->y - current->y, current->x - next->x}; in getStrokeVerticesFromPerimeterAA()
668 Vector2 totalOffset = totalOffsetFromNormals(lastNormal, nextNormal); in getStrokeVerticesFromPerimeterAA()
669 Vector2 AAOffset = paintInfo.deriveAAOffset(totalOffset); in getStrokeVerticesFromPerimeterAA()
671 Vector2 innerOffset = totalOffset; in getStrokeVerticesFromPerimeterAA()
673 Vector2 outerOffset = innerOffset + AAOffset; in getStrokeVerticesFromPerimeterAA()