Home | History | Annotate | Download | only in Intersection

Lines Matching refs:intersections

8 #include "Intersections.h"
29 static int computePoints(const _Line& a, int used, Intersections& i) {
43 int intersect(const _Line& a, const _Line& b, Intersections& i) {
169 double y, bool flipped, Intersections& intersections) {
170 int result = horizontalIntersect(line, y, intersections.fT[0]);
175 double xIntercept = line[0].x + intersections.fT[0][0]
180 intersections.fT[1][0] = (xIntercept - left) / (right - left);
198 intersections.fT[0][0] = (overlapL - line[0].x) / (line[1].x - line[0].x);
199 intersections.fT[1][0] = (overlapL - left) / (right - left);
201 intersections.fT[0][1] = (overlapR - line[0].x) / (line[1].x - line[0].x);
202 intersections.fT[1][1] = (overlapR - left) / (right - left);
215 intersections.fT[0][0] = SkTMax(SkTMin(at0, 1.0), 0.0);
216 intersections.fT[0][1] = SkTMax(SkTMin(at1, 1.0), 0.0);
218 intersections.fT[1][bIn] = SkTMax(SkTMin((b0 - a0) / (b0 - b1),
220 intersections.fT[1][!bIn] = SkTMax(SkTMin((b0 - a1) / (b0 - b1),
222 bool second = fabs(intersections.fT[0][0] - intersections.fT[0][1])
224 SkASSERT((fabs(intersections.fT[1][0] - intersections.fT[1][1])
226 return computePoints(line, 1 + second, intersections);
233 intersections.fT[1][index] = 1 - intersections.fT[1][index];
236 return computePoints(line, result, intersections);
258 double x, bool flipped, Intersections& intersections) {
259 int result = verticalIntersect(line, x, intersections.fT[0]);
264 double yIntercept = line[0].y + intersections.fT[0][0]
269 intersections.fT[1][0] = (yIntercept - top) / (bottom - top);
287 intersections.fT[0][0] = (overlapT - line[0].y) / (line[1].y - line[0].y);
288 intersections.fT[1][0] = (overlapT - top) / (bottom - top);
290 intersections.fT[0][1] = (overlapB - line[0].y) / (line[1].y - line[0].y);
291 intersections.fT[1][1] = (overlapB - top) / (bottom - top);
304 intersections.fT[0][0] = SkTMax(SkTMin(at0, 1.0), 0.0);
305 intersections.fT[0][1] = SkTMax(SkTMin(at1, 1.0), 0.0);
307 intersections.fT[1][bIn] = SkTMax(SkTMin((b0 - a0) / (b0 - b1),
309 intersections.fT[1][!bIn] = SkTMax(SkTMin((b0 - a1) / (b0 - b1),
311 bool second = fabs(intersections.fT[0][0] - intersections.fT[0][1])
313 SkASSERT((fabs(intersections.fT[1][0] - intersections.fT[1][1])
315 return computePoints(line, 1 + second, intersections);
322 intersections.fT[1][index] = 1 - intersections.fT[1][index];
325 return computePoints(line, result, intersections);