Searched refs:signed_distance (Results 1 – 1 of 1) sorted by relevance
/external/skia/samplecode/ |
D | SampleDegenerateQuads.cpp | 50 static SkScalar signed_distance(const SkPoint& p, const SkPoint& l0, const SkPoint& l1) { in signed_distance() function 90 edgeD[i] = -signed_distance(point, e0, e1); in get_area_coverage() 120 SkScalar d = signed_distance(corners[i], outsetLines[j * 2], outsetLines[j * 2 + 1]); in get_edge_dist_coverage() 136 SkScalar d = (flip ? 1 : -1) * signed_distance(point, lines[i * 2], lines[i * 2 + 1]); in get_edge_dist_coverage() 155 bool flip = signed_distance(t0, t1, t2) < 0.f; in inside_triangle() 157 SkScalar d0 = (flip ? -1 : 1) * signed_distance(point, t0, t1); in inside_triangle() 158 SkScalar d1 = (flip ? -1 : 1) * signed_distance(point, t1, t2); in inside_triangle() 159 SkScalar d2 = (flip ? -1 : 1) * signed_distance(point, t2, t0); in inside_triangle()
|