• Home
  • Raw
  • Download

Lines Matching refs:rowData

468             RowData *rowData,  in precomputation_for_row()  argument
480 rowData->fQuadXDirection = (int)sign_of(segment.fP2T.x() - segment.fP0T.x()); in precomputation_for_row()
481 rowData->fScanlineXDirection = (int)sign_of(xFormPtRight.x() - xFormPtLeft.x()); in precomputation_for_row()
489 rowData->fIntersectionType = RowData::kVerticalLine; in precomputation_for_row()
490 rowData->fYAtIntersection = x1 * x1; in precomputation_for_row()
491 rowData->fScanlineXDirection = 0; in precomputation_for_row()
506 if ((rowData->fScanlineXDirection == 1 && in precomputation_for_row()
510 rowData->fIntersectionType = RowData::kTangentLine; in precomputation_for_row()
511 rowData->fXAtIntersection1 = m / 2.0; in precomputation_for_row()
512 rowData->fXAtIntersection2 = m / 2.0; in precomputation_for_row()
514 rowData->fIntersectionType = RowData::kNoIntersection; in precomputation_for_row()
517 rowData->fIntersectionType = RowData::kTwoPointsIntersect; in precomputation_for_row()
519 rowData->fXAtIntersection1 = (m + d) / 2.0; in precomputation_for_row()
520 rowData->fXAtIntersection2 = (m - d) / 2.0; in precomputation_for_row()
528 const RowData& rowData) { in calculate_side_of_quad() argument
531 if (RowData::kVerticalLine == rowData.fIntersectionType) { in calculate_side_of_quad()
532 … side = (SegSide)(int)(sign_of(xFormPt.y() - rowData.fYAtIntersection) * rowData.fQuadXDirection); in calculate_side_of_quad()
534 else if (RowData::kTwoPointsIntersect == rowData.fIntersectionType) { in calculate_side_of_quad()
535 const double p1 = rowData.fXAtIntersection1; in calculate_side_of_quad()
536 const double p2 = rowData.fXAtIntersection2; in calculate_side_of_quad()
542 if (rowData.fScanlineXDirection == 1) { in calculate_side_of_quad()
543 if ((rowData.fQuadXDirection == -1 && segment.fPts[0].y() <= point.y() && in calculate_side_of_quad()
545 (rowData.fQuadXDirection == 1 && segment.fPts[2].y() <= point.y() && in calculate_side_of_quad()
549 if ((rowData.fQuadXDirection == -1 && segment.fPts[2].y() <= point.y() && in calculate_side_of_quad()
551 (rowData.fQuadXDirection == 1 && segment.fPts[0].y() <= point.y() && in calculate_side_of_quad()
559 side = (SegSide)(signP1 * rowData.fQuadXDirection); in calculate_side_of_quad()
565 side = (SegSide)(-signP2 * rowData.fQuadXDirection); in calculate_side_of_quad()
568 } else if (RowData::kTangentLine == rowData.fIntersectionType) { in calculate_side_of_quad()
571 const double p = rowData.fXAtIntersection1; in calculate_side_of_quad()
573 if (rowData.fScanlineXDirection == 1) { in calculate_side_of_quad()
588 const RowData& rowData, in distance_to_segment() argument
636 *side = calculate_side_of_quad(segment, point, xformPt, rowData); in distance_to_segment()
673 RowData rowData; in calculate_distance_field_data() local
680 precomputation_for_row(&rowData, segment, pointLeft, pointRight); in calculate_distance_field_data()
705 float currDistSq = distance_to_segment(point, segment, rowData, &side); in calculate_distance_field_data()