Home
last modified time | relevance | path

Searched refs:xformPt (Results 1 – 2 of 2) sorted by relevance

/external/skqp/src/gpu/
DGrDistanceFieldGenFromVector.cpp592 const DPoint xformPt = segment.fXformMatrix.mapPoint(point); in distance_to_segment() local
597 if (between_closed(xformPt.x(), segment.fP0T.x(), segment.fP2T.x())) { in distance_to_segment()
598 result = (float)(xformPt.y() * xformPt.y()); in distance_to_segment()
599 } else if (xformPt.x() < segment.fP0T.x()) { in distance_to_segment()
600 result = (float)(xformPt.x() * xformPt.x() + xformPt.y() * xformPt.y()); in distance_to_segment()
602 result = (float)((xformPt.x() - segment.fP2T.x()) * (xformPt.x() - segment.fP2T.x()) in distance_to_segment()
603 + xformPt.y() * xformPt.y()); in distance_to_segment()
608 *side = (SegSide)(int)sign_of(xformPt.y()); in distance_to_segment()
616 const float nearestPoint = calculate_nearest_point_for_quad(segment, xformPt); in distance_to_segment()
622 dist = (float)xformPt.distanceToSqd(x); in distance_to_segment()
[all …]
/external/skia/src/gpu/
DGrDistanceFieldGenFromVector.cpp559 const SkDPoint xformPt = segment.fXformMatrix.mapPoint(point); in distance_to_segment() local
564 if (between_closed(xformPt.fX, segment.fP0T.fX, segment.fP2T.fX)) { in distance_to_segment()
565 result = (float)(xformPt.fY * xformPt.fY); in distance_to_segment()
566 } else if (xformPt.fX < segment.fP0T.fX) { in distance_to_segment()
567 result = (float)(xformPt.fX * xformPt.fX + xformPt.fY * xformPt.fY); in distance_to_segment()
569 result = (float)((xformPt.fX - segment.fP2T.fX) * (xformPt.fX - segment.fP2T.fX) in distance_to_segment()
570 + xformPt.fY * xformPt.fY); in distance_to_segment()
575 *side = (SegSide)(int)sign_of(xformPt.fY); in distance_to_segment()
583 const float nearestPoint = calculate_nearest_point_for_quad(segment, xformPt); in distance_to_segment()
589 dist = (float)xformPt.distanceSquared(x); in distance_to_segment()
[all …]