/external/skia/include/utils/ |
SkCubicInterval.h | 10 static inline SkScalar SkEvalCubicInterval(const SkPoint pts[2], SkScalar x) { 11 return SkEvalCubicInterval(pts[0].fX, pts[0].fY, 12 pts[1].fX, pts[1].fY, x);
|
/external/skia/tests/ |
GeometryTest.cpp | 5 SkPoint pts[3], dst[5]; local 7 pts[0].set(0, 0); 8 pts[1].set(100, 50); 9 pts[2].set(0, 100); 11 int count = SkChopQuadAtMaxCurvature(pts, dst);
|
/external/skia/include/core/ |
SkEdgeClipper.h | 27 bool clipQuad(const SkPoint pts[3], const SkRect& clip); 28 bool clipCubic(const SkPoint pts[4], const SkRect& clip); 30 SkPath::Verb next(SkPoint pts[]); 46 void appendQuad(const SkPoint pts[3], bool reverse); 47 void appendCubic(const SkPoint pts[4], bool reverse); 51 void sk_assert_monotonic_x(const SkPoint pts[], int count); 52 void sk_assert_monotonic_y(const SkPoint pts[], int count); 54 #define sk_assert_monotonic_x(pts, count) 55 #define sk_assert_monotonic_y(pts, count)
|
SkLineClipper.h | 13 /* Clip the line pts[0]...pts[1] against clip, ignoring segments that 24 static int ClipLine(const SkPoint pts[2], const SkRect& clip,
|
/external/skia/src/core/ |
SkEdgeClipper.cpp | 74 static bool chopMonoQuadAtY(SkPoint pts[3], SkScalar y, SkScalar* t) { 75 return chopMonoQuadAt(pts[0].fY, pts[1].fY, pts[2].fY, y, t); 78 static bool chopMonoQuadAtX(SkPoint pts[3], SkScalar x, SkScalar* t) { 79 return chopMonoQuadAt(pts[0].fX, pts[1].fX, pts[2].fX, x, t); 82 // Modify pts[] in place so that it is clipped in Y to the clip rect 83 static void chop_quad_in_Y(SkPoint pts[3], const SkRect& clip) 129 SkPoint pts[3]; local [all...] |
SkConcaveToTriangles.h | 34 const SkPoint pts[],
|
SkEdgeBuilder.h | 25 void addLine(const SkPoint pts[]); 26 void addQuad(const SkPoint pts[]); 27 void addCubic(const SkPoint pts[]);
|
SkQuadClipper.h | 46 bool clipQuad(const SkPoint pts[3], const SkRect& clip); 47 bool clipCubic(const SkPoint pts[4], const SkRect& clip); 49 SkPath::Verb next(SkPoint pts[]); 65 void appendQuad(const SkPoint pts[3], bool reverse); 66 void appendCubic(const SkPoint pts[4], bool reverse); 70 void sk_assert_monotonic_x(const SkPoint pts[], int count); 71 void sk_assert_monotonic_y(const SkPoint pts[], int count); 73 #define sk_assert_monotonic_x(pts, count) 74 #define sk_assert_monotonic_y(pts, count)
|
SkEdgeBuilder.cpp | 16 void SkEdgeBuilder::addLine(const SkPoint pts[]) { 18 if (edge->setLine(pts[0], pts[1], NULL, fShiftUp)) { 25 void SkEdgeBuilder::addQuad(const SkPoint pts[]) { 27 if (edge->setQuadratic(pts, fShiftUp)) { 34 void SkEdgeBuilder::addCubic(const SkPoint pts[]) { 36 if (edge->setCubic(pts, NULL, fShiftUp)) { 44 SkPoint pts[4]; local 47 while ((verb = clipper->next(pts)) != SkPath::kDone_Verb) { 50 this->addLine(pts); 80 SkPoint pts[4]; local [all...] |
SkPath.cpp | 75 static void compute_pt_bounds(SkRect* bounds, const SkTDArray<SkPoint>& pts) { 76 if (pts.count() <= 1) { // we ignore just 1 point (moveto) 79 bounds->set(pts.begin(), pts.count()); 80 // SkDebugf("------- compute bounds %p %d", &pts, pts.count()); 324 SkPoint* pts = fPts.append(2); local 325 pts[0].set(x1, y1); 326 pts[1].set(x2, y2); 347 SkPoint* pts = fPts.append(3) local 674 SkPoint pts[kSkBuildQuadArcStorage]; local 701 SkPoint pts[kSkBuildQuadArcStorage]; local 764 SkPoint pts[kSkBuildQuadArcStorage]; local 793 SkPoint pts[4]; local 846 const SkPoint* pts = path.fPts.begin() + 1; \/\/ 1 for the initial moveTo local 878 const SkPoint* pts = path.fPts.begin(); local 957 SkPoint pts[4]; local 1243 SkPoint pts[4]; local 1312 SkPoint pts[4]; local 1496 SkPoint pts[4]; local [all...] |
/external/skia/gm/ |
gradients.cpp | 29 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, 31 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, 35 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, 38 center.set(SkScalarAve(pts[0].fX, pts[1].fX), 39 SkScalarAve(pts[0].fY, pts[1].fY)); 44 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data, 47 center.set(SkScalarAve(pts[0].fX, pts[1].fX) 92 SkPoint pts[2] = { local [all...] |
points.cpp | 23 static void fill_pts(SkPoint pts[], size_t n, SkRandom* rand) { 25 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480); 46 SkPoint* pts = new SkPoint[n]; local 47 fill_pts(pts, n, &rand); 49 canvas->drawPoints(SkCanvas::kPolygon_PointMode, n, pts, p0); 50 canvas->drawPoints(SkCanvas::kLines_PointMode, n, pts, p1); 51 canvas->drawPoints(SkCanvas::kPoints_PointMode, n, pts, p2); 52 canvas->drawPoints(SkCanvas::kPoints_PointMode, n, pts, p3); 54 delete[] pts;
|
shadertext.cpp | 15 SkPoint pts[] = { { 0, 0 }, { s, s } }; local 27 paint.setShader(SkGradientShader::CreateLinear(pts, colors, pos, 58 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, 60 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, 64 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, 67 center.set(SkScalarAve(pts[0].fX, pts[1].fX), 68 SkScalarAve(pts[0].fY, pts[1].fY)); 73 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data 129 SkPoint pts[2] = { local [all...] |
/external/skia/samplecode/ |
SampleGradients.cpp | 8 SkPoint pts[] = { { r.fLeft, r.fTop }, { r.fRight, r.fTop } }; local 9 return SkGradientShader::CreateLinear(pts, colors, NULL, 2, 60 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, 62 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, 66 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, 69 center.set(SkScalarAve(pts[0].fX, pts[1].fX), 70 SkScalarAve(pts[0].fY, pts[1].fY)); 75 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data 133 SkPoint pts[2] = { local [all...] |
SamplePoints.cpp | 37 static void fill_pts(SkPoint pts[], size_t n, SkRandom* rand) { 39 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480); 58 SkPoint* pts = new SkPoint[n]; local 59 fill_pts(pts, n, &rand); 61 canvas->drawPoints(SkCanvas::kPolygon_PointMode, n, pts, p0); 62 canvas->drawPoints(SkCanvas::kLines_PointMode, n, pts, p1); 63 canvas->drawPoints(SkCanvas::kPoints_PointMode, n, pts, p2); 64 canvas->drawPoints(SkCanvas::kPoints_PointMode, n, pts, p3); 66 delete[] pts;
|
SampleCull.cpp | 13 static void addbump(SkPath* path, const SkPoint pts[2], SkScalar bump) { 16 tang.setLength(pts[1].fX - pts[0].fX, pts[1].fY - pts[0].fY, bump); 18 path->lineTo(SkScalarHalf(pts[0].fX + pts[1].fX) - tang.fY, 19 SkScalarHalf(pts[0].fY + pts[1].fY) + tang.fX); 20 path->lineTo(pts[1]) 25 SkPoint pts[4]; local 48 SkPoint pts[4]; local [all...] |
SampleLineClipper.cpp | 22 static int test0(SkPoint pts[], SkRect* clip) { 23 pts[0].set(200000, 140); 24 pts[1].set(-740000, 483); 25 pts[2].set(1.00000102e-06f, 9.10000017e-05f); 32 static void drawQuad(SkCanvas* canvas, const SkPoint pts[3], const SkPaint& p) { 34 path.moveTo(pts[0]); 35 path.quadTo(pts[1], pts[2]); 39 static void drawCubic(SkCanvas* canvas, const SkPoint pts[4], const SkPaint& p) { 41 path.moveTo(pts[0]) 91 SkPoint pts[4]; local 116 SkPoint pts[4]; local [all...] |
SampleShaderText.cpp | 14 SkPoint pts[] = { { 0, 0 }, { s, s } }; local 26 paint.setShader(SkGradientShader::CreateLinear(pts, colors, pos, 57 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, 59 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, 63 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, 66 center.set(SkScalarAve(pts[0].fX, pts[1].fX), 67 SkScalarAve(pts[0].fY, pts[1].fY)); 72 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data 126 SkPoint pts[2] = { local [all...] |
SampleHairline.cpp | 43 static void generate_pts(SkPoint pts[], int count, int w, int h) { 45 pts[i].set(gRand.nextUScalar1() * 3 * w - SkIntToScalar(w), 89 SkPoint pts[N]; local 91 generate_pts(pts, N, WIDTH, HEIGHT); 93 canvas->drawLine(pts[0].fX, pts[0].fY, pts[1].fX, pts[1].fY, paint); 96 pts[0].fX, pts[0].fY, pts[1].fX, pts[1].fY) 105 SkPoint pts[N]; local 128 SkPoint pts[N]; local 152 SkPoint pts[N]; local [all...] |
SampleEffects.cpp | 14 SkPoint pts[] = { local 23 clipper.clipCubic(pts, clip); 47 SkPoint pts[] = { { 3, 0 }, { 7, 5 } }; local 48 paint->setShader(SkGradientShader::CreateLinear(pts, colors, NULL, SK_ARRAY_COUNT(colors), 75 const float pts[] = { local 84 fPath.moveTo(pts[0], pts[1]); 85 for (i = 2; i < SK_ARRAY_COUNT(pts); i += 2) { 86 fPath.lineTo(pts[i], pts[i+1]) [all...] |
/frameworks/base/core/java/android/gesture/ |
Instance.java | 73 float[] pts; local 76 pts = temporalSampler(orientationType, gesture); 77 instance = new Instance(gesture.getID(), pts, label); 80 pts = spatialSampler(gesture); 81 instance = new Instance(gesture.getID(), pts, label); 91 float[] pts = GestureUtils.temporalSampling(gesture.getStrokes().get(0), local 93 float[] center = GestureUtils.computeCentroid(pts); 94 float orientation = (float)Math.atan2(pts[1] - center[1], pts[0] - center[0]); 107 GestureUtils.translate(pts, -center[0], -center[1]) [all...] |
/external/skia/src/effects/ |
SkCornerPathEffect.cpp | 54 SkPoint pts[4]; local 67 switch (verb = iter.next(pts)) { 75 moveTo = pts[0]; 78 dst->moveTo(pts[0]); 83 bool drawSegment = ComputeStep(pts[0], pts[1], fRadius, &step); 89 dst->quadTo(pts[0].fX, pts[0].fY, pts[0].fX + step.fX, 90 pts[0].fY + step.fY) [all...] |
/external/skia/bench/ |
GradientBench.cpp | 34 static SkShader* MakeLinear(const SkPoint pts[2], const GradData& data, 36 return SkGradientShader::CreateLinear(pts, data.fColors, data.fPos, 40 static SkShader* MakeRadial(const SkPoint pts[2], const GradData& data, 43 center.set(SkScalarAve(pts[0].fX, pts[1].fX), 44 SkScalarAve(pts[0].fY, pts[1].fY)); 49 static SkShader* MakeSweep(const SkPoint pts[2], const GradData& data, 52 center.set(SkScalarAve(pts[0].fX, pts[1].fX) 107 const SkPoint pts[2] = { local [all...] |
/external/quake/quake/src/QW/client/ |
gl_test.c | 103 vec3_t pts[2][3];
local 122 pts[i][0][j] = p->origin[j] + p->up[j]*s + p->reflect[j]*d;
123 pts[i][1][j] = p->origin[j] + p->right[j]*s + p->reflect[j]*d;
124 pts[i][2][j] = p->origin[j] + -p->right[j]*s + p->reflect[j]*d;
137 glVertex3fv (pts[0][0]);
138 glVertex3fv (pts[1][0]);
140 glVertex3fv (pts[0][1]);
141 glVertex3fv (pts[1][1]);
143 glVertex3fv (pts[0][2]);
144 glVertex3fv (pts[1][2]); [all...] |
/external/quake/quake/src/WinQuake/ |
gl_test.cpp | 103 vec3_t pts[2][3];
local 122 pts[i][0][j] = p->origin[j] + p->up[j]*s + p->reflect[j]*d;
123 pts[i][1][j] = p->origin[j] + p->right[j]*s + p->reflect[j]*d;
124 pts[i][2][j] = p->origin[j] + -p->right[j]*s + p->reflect[j]*d;
137 glVertex3fv (pts[0][0]);
138 glVertex3fv (pts[1][0]);
140 glVertex3fv (pts[0][1]);
141 glVertex3fv (pts[1][1]);
143 glVertex3fv (pts[0][2]);
144 glVertex3fv (pts[1][2]); [all...] |