Home
last modified time | relevance | path

Searched refs:points (Results 1 – 25 of 572) sorted by relevance

12345678910>>...23

/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/fitting/
DGaussianParametersGuesser.java79 private double[] basicGuess(WeightedObservedPoint[] points) { in basicGuess() argument
80 Arrays.sort(points, createWeightedObservedPointComparator()); in basicGuess()
83 int minYIdx = findMinY(points); in basicGuess()
84 params[0] = points[minYIdx].getY(); in basicGuess()
86 int maxYIdx = findMaxY(points); in basicGuess()
87 params[1] = points[maxYIdx].getY(); in basicGuess()
88 params[2] = points[maxYIdx].getX(); in basicGuess()
93 double fwhmX1 = interpolateXAtY(points, maxYIdx, -1, halfY); in basicGuess()
94 double fwhmX2 = interpolateXAtY(points, maxYIdx, +1, halfY); in basicGuess()
97 fwhmApprox = points[points.length - 1].getX() - points[0].getX(); in basicGuess()
[all …]
/external/fonttools/Lib/fontTools/pens/
DbasePen.py58 def curveTo(self, *points): argument
79 def qCurveTo(self, *points): argument
128 def curveTo(self, *points): argument
131 def qCurveTo(self, *points): argument
226 def curveTo(self, *points): argument
227 n = len(points) - 1 # 'n' is the number of control points
234 self._curveToOne(*points)
235 self.__currentPoint = points[-1]
245 for pt1, pt2, pt3 in decomposeSuperBezierSegment(points):
249 self.qCurveTo(*points)
[all …]
DtransformPen.py34 def curveTo(self, *points): argument
35 self._outPen.curveTo(*self._transformPoints(points))
37 def qCurveTo(self, *points): argument
38 if points[-1] is None:
39 points = self._transformPoints(points[:-1]) + [None]
41 points = self._transformPoints(points)
42 self._outPen.qCurveTo(*points)
44 def _transformPoints(self, points): argument
47 for pt in points:
/external/mesa3d/src/glx/
Deval.c41 const GLfloat * points, GLubyte * pc) in __glFillMap1f() argument
45 __GLX_PUT_FLOAT_ARRAY(0, points, order * k); in __glFillMap1f()
51 __GLX_PUT_FLOAT_ARRAY(0, points, k); in __glFillMap1f()
52 points += stride; in __glFillMap1f()
60 const GLdouble * points, GLubyte * pc) in __glFillMap1d() argument
64 __GLX_PUT_DOUBLE_ARRAY(0, points, order * k); in __glFillMap1d()
69 __GLX_PUT_DOUBLE_ARRAY(0, points, k); in __glFillMap1d()
70 points += stride; in __glFillMap1d()
79 const GLfloat * points, GLfloat * data) in __glFillMap2f() argument
85 __GLX_MEM_COPY(data, points, majorOrder * majorStride * in __glFillMap2f()
[all …]
/external/skia/bench/
DHairlinePathBench.cpp25 static const int points[] = { variable
89 int size = SK_ARRAY_COUNT(points); in makePath()
100 path->moveTo(SkIntToScalar(points[base1] + xTrans), in makePath()
101 SkIntToScalar(points[base1+1] + yTrans)); in makePath()
102 path->lineTo(SkIntToScalar(points[base2] + xTrans), in makePath()
103 SkIntToScalar(points[base2+1] + yTrans)); in makePath()
104 path->lineTo(SkIntToScalar(points[base3] + xTrans), in makePath()
105 SkIntToScalar(points[base3+1] + yTrans)); in makePath()
121 int size = SK_ARRAY_COUNT(points); in makePath()
132 path->moveTo(SkIntToScalar(points[base1] + xTrans), in makePath()
[all …]
DPatchGridBench.cpp102 SkPoint points[12]; in setGrid() local
105 points[SkPatchUtils::kTopP0_CubicCtrlPts] = vertices[i][j]; in setGrid()
106 points[SkPatchUtils::kTopP3_CubicCtrlPts] = vertices[i][j + 1]; in setGrid()
107 points[SkPatchUtils::kBottomP0_CubicCtrlPts] = vertices[i + 1][j]; in setGrid()
108 points[SkPatchUtils::kBottomP3_CubicCtrlPts] = vertices[i + 1][j + 1]; in setGrid()
110 points[SkPatchUtils::kTopP1_CubicCtrlPts] = hrzCtrl[i][j * 2]; in setGrid()
111 points[SkPatchUtils::kTopP2_CubicCtrlPts] = hrzCtrl[i][j * 2 + 1]; in setGrid()
112 points[SkPatchUtils::kBottomP1_CubicCtrlPts] = hrzCtrl[i + 1][j * 2]; in setGrid()
113 points[SkPatchUtils::kBottomP2_CubicCtrlPts] = hrzCtrl[i + 1][j * 2 + 1]; in setGrid()
115 points[SkPatchUtils::kLeftP1_CubicCtrlPts] = vrtCtrl[i * 2][j]; in setGrid()
[all …]
/external/skia/src/animator/
DSkParseSVGPath.cpp119 SkPoint points[3]; in parseSVG() local
144 data = find_points(data, points, 1, relative, &c); in parseSVG()
145 fPath.moveTo(points[0]); in parseSVG()
147 c = points[0]; in parseSVG()
150 data = find_points(data, points, 1, relative, &c); in parseSVG()
151 fPath.lineTo(points[0]); in parseSVG()
152 c = points[0]; in parseSVG()
169 data = find_points(data, points, 3, relative, &c); in parseSVG()
172 data = find_points(data, &points[1], 2, relative, &c); in parseSVG()
173 points[0] = c; in parseSVG()
[all …]
/external/skia/tests/
DPathCoverageTest.cpp39 static inline int estimate_distance(const SkPoint points[]) { in estimate_distance() argument
40 return cheap_distance(points[1].fX * 2 - points[2].fX - points[0].fX, in estimate_distance()
41 points[1].fY * 2 - points[2].fY - points[0].fY); in estimate_distance()
44 static inline SkScalar compute_distance(const SkPoint points[]) { in compute_distance() argument
45 return points[1].distanceToLineSegmentBetween(points[0], points[2]); in compute_distance()
69 static uint32_t quadraticPointCount_EE(const SkPoint points[]) { in quadraticPointCount_EE() argument
70 int distance = estimate_distance(points); in quadraticPointCount_EE()
74 static uint32_t quadraticPointCount_EC(const SkPoint points[], SkScalar tol) { in quadraticPointCount_EC() argument
75 int distance = estimate_distance(points); in quadraticPointCount_EC()
79 static uint32_t quadraticPointCount_CE(const SkPoint points[]) { in quadraticPointCount_CE() argument
[all …]
/external/skia/src/utils/
DSkParsePath.cpp75 SkPoint points[3]; in FromSVGString() local
103 data = find_points(data, points, 1, relative, &c); in FromSVGString()
104 path.moveTo(points[0]); in FromSVGString()
106 c = points[0]; in FromSVGString()
109 data = find_points(data, points, 1, relative, &c); in FromSVGString()
110 path.lineTo(points[0]); in FromSVGString()
111 c = points[0]; in FromSVGString()
126 data = find_points(data, points, 3, relative, &c); in FromSVGString()
129 data = find_points(data, &points[1], 2, relative, &c); in FromSVGString()
130 points[0] = c; in FromSVGString()
[all …]
DSkPatchUtils.cpp56 explicit FwDCubicEvaluator(const SkPoint points[4]) { in FwDCubicEvaluator()
57 memcpy(fPoints, points, 4 * sizeof(SkPoint)); in FwDCubicEvaluator()
119 static SkScalar approx_arc_length(SkPoint* points, int count) { in approx_arc_length() argument
125 arcLength += SkPoint::Distance(points[i], points[i + 1]); in approx_arc_length()
164 void SkPatchUtils::getTopCubic(const SkPoint cubics[12], SkPoint points[4]) { in getTopCubic()
165 points[0] = cubics[kTopP0_CubicCtrlPts]; in getTopCubic()
166 points[1] = cubics[kTopP1_CubicCtrlPts]; in getTopCubic()
167 points[2] = cubics[kTopP2_CubicCtrlPts]; in getTopCubic()
168 points[3] = cubics[kTopP3_CubicCtrlPts]; in getTopCubic()
171 void SkPatchUtils::getBottomCubic(const SkPoint cubics[12], SkPoint points[4]) { in getBottomCubic()
[all …]
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/collision/shapes/
DHullCollisionShape.java18 private float[] points; field in HullCollisionShape
24 this.points = getPoints(mesh); in HullCollisionShape()
25 createShape(this.points); in HullCollisionShape()
28 public HullCollisionShape(float[] points) { in HullCollisionShape() argument
29 this.points = points; in HullCollisionShape()
30 createShape(this.points); in HullCollisionShape()
38 capsule.write(points, "points", null); in write()
49 this.points = getPoints(mesh); in read()
51 this.points = capsule.readFloatArray("points", null); in read()
54 createShape(this.points); in read()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode/
DconfusablesWholeScript.txt24 # Total code points: 5
34 # Total code points: 5
45 # Total code points: 6
55 # Total code points: 5
65 # Total code points: 5
75 # Total code points: 5
85 # Total code points: 5
97 # Total code points: 7
107 # Total code points: 5
117 # Total code points: 5
[all …]
/external/icu/icu4c/source/data/unidata/
DconfusablesWholeScript.txt24 # Total code points: 5
34 # Total code points: 5
45 # Total code points: 6
55 # Total code points: 5
65 # Total code points: 5
75 # Total code points: 5
85 # Total code points: 5
97 # Total code points: 7
107 # Total code points: 5
117 # Total code points: 5
[all …]
/external/opencv/cv/src/
Dcvrotcalipers.cpp93 icvRotatingCalipers( CvPoint2D32f* points, int n, int mode, float* out ) in icvRotatingCalipers() argument
113 CvPoint2D32f pt0 = points[0]; in icvRotatingCalipers()
134 CvPoint2D32f pt = points[(i+1) & (i+1 < n ? -1 : 0)]; in icvRotatingCalipers()
250 float dx = points[seq[opposite_el]].x - points[seq[main_element]].x; in icvRotatingCalipers()
251 float dy = points[seq[opposite_el]].y - points[seq[main_element]].y; in icvRotatingCalipers()
271 float dx = points[seq[1]].x - points[seq[3]].x; in icvRotatingCalipers()
272 float dy = points[seq[1]].y - points[seq[3]].y; in icvRotatingCalipers()
278 dx = points[seq[2]].x - points[seq[0]].x; in icvRotatingCalipers()
279 dy = points[seq[2]].y - points[seq[0]].y; in icvRotatingCalipers()
317 float C1 = A1 * points[((int *) buf)[0]].x + points[((int *) buf)[0]].y * B1; in icvRotatingCalipers()
[all …]
Dcvlinefit.cpp46 icvFitLine2D_wods( CvPoint2D32f * points, int _count, float *weights, float *line ) in icvFitLine2D_wods() argument
60 x += points[i].x; in icvFitLine2D_wods()
61 y += points[i].y; in icvFitLine2D_wods()
62 x2 += points[i].x * points[i].x; in icvFitLine2D_wods()
63 y2 += points[i].y * points[i].y; in icvFitLine2D_wods()
64 xy += points[i].x * points[i].y; in icvFitLine2D_wods()
72 x += weights[i] * points[i].x; in icvFitLine2D_wods()
73 y += weights[i] * points[i].y; in icvFitLine2D_wods()
74 x2 += weights[i] * points[i].x * points[i].x; in icvFitLine2D_wods()
75 y2 += weights[i] * points[i].y * points[i].y; in icvFitLine2D_wods()
[all …]
/external/skia/src/svg/parser/
DSkSVGLinearGradient.cpp31 SkString points; in DEFINE_SVG_INFO() local
32 points.appendUnichar('['); in DEFINE_SVG_INFO()
33 points.append(f_x1); in DEFINE_SVG_INFO()
34 points.appendUnichar(','); in DEFINE_SVG_INFO()
35 points.append(f_y1); in DEFINE_SVG_INFO()
36 points.appendUnichar(','); in DEFINE_SVG_INFO()
37 points.append(f_x2); in DEFINE_SVG_INFO()
38 points.appendUnichar(','); in DEFINE_SVG_INFO()
39 points.append(f_y2); in DEFINE_SVG_INFO()
40 points.appendUnichar(']'); in DEFINE_SVG_INFO()
[all …]
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/shapes/
DHullCollisionShape.java18 private float[] points; field in HullCollisionShape
25 this.points = getPoints(mesh); in HullCollisionShape()
29 public HullCollisionShape(float[] points) { in HullCollisionShape() argument
30 this.points = points; in HullCollisionShape()
39 capsule.write(points, "points", null); in write()
50 this.points = getPoints(mesh); in read()
52 this.points = capsule.readFloatArray("points", null); in read()
69 ByteBuffer bbuf=BufferUtils.createByteBuffer(points.length * 4); in createShape()
73 for (int i = 0; i < points.length; i++) { in createShape()
74 float f = points[i]; in createShape()
[all …]
/external/skia/gm/
Dpatchgrid.cpp116 SkPoint points[12]; in onDraw() local
119 points[SkPatchUtils::kTopP0_CubicCtrlPts] = vertices[i][j]; in onDraw()
120 points[SkPatchUtils::kTopP3_CubicCtrlPts] = vertices[i][j + 1]; in onDraw()
121 points[SkPatchUtils::kBottomP0_CubicCtrlPts] = vertices[i + 1][j]; in onDraw()
122 points[SkPatchUtils::kBottomP3_CubicCtrlPts] = vertices[i + 1][j + 1]; in onDraw()
124 points[SkPatchUtils::kTopP1_CubicCtrlPts] = hrzCtrl[i][j * 2]; in onDraw()
125 points[SkPatchUtils::kTopP2_CubicCtrlPts] = hrzCtrl[i][j * 2 + 1]; in onDraw()
126 points[SkPatchUtils::kBottomP1_CubicCtrlPts] = hrzCtrl[i + 1][j * 2]; in onDraw()
127 points[SkPatchUtils::kBottomP2_CubicCtrlPts] = hrzCtrl[i + 1][j * 2 + 1]; in onDraw()
129 points[SkPatchUtils::kLeftP1_CubicCtrlPts] = vrtCtrl[i * 2][j]; in onDraw()
[all …]
Ddstreadshuffle.cpp61 SkPoint points[4]; in drawShape() local
62 kRect.toQuad(points); in drawShape()
63 fConvexPath.moveTo(points[0]); in drawShape()
64 fConvexPath.quadTo(points[1], points[2]); in drawShape()
65 fConvexPath.quadTo(points[3], points[0]); in drawShape()
72 SkPoint points[5] = {{0, SkIntToScalar(-50)} }; in drawShape() local
76 rot.mapPoints(points + i, points + i - 1, 1); in drawShape()
78 fConcavePath.moveTo(points[0]); in drawShape()
80 fConcavePath.lineTo(points[(2 * i) % 5]); in drawShape()
Dmixedxfermodes.cpp59 SkPoint points[4]; in drawShape() local
60 kRect.toQuad(points); in drawShape()
61 fConvexPath.moveTo(points[0]); in drawShape()
62 fConvexPath.quadTo(points[1], points[2]); in drawShape()
63 fConvexPath.quadTo(points[3], points[0]); in drawShape()
70 SkPoint points[5] = {{0, SkIntToScalar(-50)} }; in drawShape() local
74 rot.mapPoints(points + i, points + i - 1, 1); in drawShape()
76 fConcavePath.moveTo(points[0]); in drawShape()
78 fConcavePath.lineTo(points[(2 * i) % 5]); in drawShape()
/external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/control/ragdoll/
DRagdollUtils.java85 List<Float> points = map.get(index); in buildPointMapForMesh() local
86 if (points == null) { in buildPointMapForMesh()
87 points = new ArrayList<Float>(); in buildPointMapForMesh()
88 map.put(index, points); in buildPointMapForMesh()
90 points.add(vertices.get(i)); in buildPointMapForMesh()
91 points.add(vertices.get(i + 1)); in buildPointMapForMesh()
92 points.add(vertices.get(i + 2)); in buildPointMapForMesh()
106 ArrayList<Float> points = new ArrayList<Float>(); in makeShapeFromPointMap() local
117 points.add(pos.x); in makeShapeFromPointMap()
118 points.add(pos.y); in makeShapeFromPointMap()
[all …]
/external/skia/tools/lua/
Dscrape_dashing.lua67 local points = t.points
68 increment(drawPointsTable, #points)
69 if 2 == #points then
70 if points[1].y == points[2].y then
72 elseif points[1].x == points[2].x then
/external/mesa3d/src/gallium/state_trackers/vega/
Dbezier.c293 static INLINE VGboolean is_bezier_line(float (*points)[2], int count) in is_bezier_line()
295 float dx13 = points[2][0] - points[0][0]; in is_bezier_line()
296 float dy13 = points[2][1] - points[0][1]; in is_bezier_line()
298 float dx12 = points[1][0] - points[0][0]; in is_bezier_line()
299 float dy12 = points[1][1] - points[0][1]; in is_bezier_line()
306 float dx14 = points[3][0] - points[0][0]; in is_bezier_line()
307 float dy14 = points[3][1] - points[0][1]; in is_bezier_line()
340 float points[4][2]; in shift() local
346 points[np][0] = orig->x1; in shift()
347 points[np][1] = orig->y1; in shift()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/shadow/
DShadowUtil.java65 public static void updateFrustumPoints2(Camera viewCam, Vector3f[] points) { in updateFrustumPoints2() argument
71 points[0].set(viewCam.getWorldCoordinates(new Vector2f(0, 0), n)); in updateFrustumPoints2()
72 points[1].set(viewCam.getWorldCoordinates(new Vector2f(0, h), n)); in updateFrustumPoints2()
73 points[2].set(viewCam.getWorldCoordinates(new Vector2f(w, h), n)); in updateFrustumPoints2()
74 points[3].set(viewCam.getWorldCoordinates(new Vector2f(w, 0), n)); in updateFrustumPoints2()
76 points[4].set(viewCam.getWorldCoordinates(new Vector2f(0, 0), f)); in updateFrustumPoints2()
77 points[5].set(viewCam.getWorldCoordinates(new Vector2f(0, h), f)); in updateFrustumPoints2()
78 points[6].set(viewCam.getWorldCoordinates(new Vector2f(w, h), f)); in updateFrustumPoints2()
79 points[7].set(viewCam.getWorldCoordinates(new Vector2f(w, 0), f)); in updateFrustumPoints2()
97 Vector3f[] points) { in updateFrustumPoints() argument
[all …]
/external/freetype/src/autofit/
Dafhints.c245 AF_Point point = hints->points + point_idx; in af_get_segment_index()
305 AF_Point points = hints->points; in af_glyph_hints_dump_points() local
306 AF_Point limit = points + hints->num_points; in af_glyph_hints_dump_points()
318 for ( point = points; point < limit; point++ ) in af_glyph_hints_dump_points()
320 int point_idx = AF_INDEX_NUM( point, points ); in af_glyph_hints_dump_points()
396 AF_Point points = hints->points; in af_glyph_hints_dump_segments() local
424 AF_INDEX_NUM( seg->first, points ), in af_glyph_hints_dump_segments()
425 AF_INDEX_NUM( seg->last, points ), in af_glyph_hints_dump_segments()
674 if ( hints->points != hints->embedded.points ) in af_glyph_hints_done()
675 FT_FREE( hints->points ); in af_glyph_hints_done()
[all …]

12345678910>>...23