Home
last modified time | relevance | path

Searched refs:perpDot (Results 1 – 3 of 3) sorted by relevance

/external/skia/src/core/
DSkDrawShadowInfo.cpp95 SkScalar perpDot = v.fX*w.fY - v.fY*w.fX; in GetSpotShadowTransform() local
96 if (perpDot > 0) { in GetSpotShadowTransform()
101 perpDot = v.fX*w.fY - v.fY*w.fX; in GetSpotShadowTransform()
102 if (perpDot < 0) { in GetSpotShadowTransform()
/external/skia/src/gpu/ganesh/geometry/
DGrAAConvexTessellator.cpp43 SkScalar perpDot = n0.fX * n1.fY - n0.fY * n1.fX; in intersect() local
44 if (SkScalarNearlyZero(perpDot)) { in intersect()
47 *t = (v.fX * n1.fY - v.fY * n1.fX) / perpDot; in intersect()
57 SkScalar perpDot = n0.dot(perp); in perp_intersect() local
58 if (SkScalarNearlyZero(perpDot)) { in perp_intersect()
61 *t = v.dot(perp) / perpDot; in perp_intersect()
/external/skia/src/utils/
DSkPolyUtils.cpp48 SkScalar perpDot = v.cross(w); in compute_side() local
49 if (!SkScalarNearlyZero(perpDot, kCrossTolerance)) { in compute_side()
50 return ((perpDot > 0) ? 1 : -1); in compute_side()
218 SkScalar perpDot = v0.cross(v1); in SkIsConvexPolygon() local
219 if (lastPerpDot*perpDot < 0) { in SkIsConvexPolygon()
222 if (0 != perpDot) { in SkIsConvexPolygon()
223 lastPerpDot = perpDot; in SkIsConvexPolygon()