/frameworks/base/awt/java/awt/geom/ |
H A D | Point2D.java | 232 * @param py 237 public double distanceSq(double px, double py) { argument 238 return Point2D.distanceSq(getX(), getY(), px, py); 276 * @param py 280 public double distance(double px, double py) { argument 281 return Math.sqrt(distanceSq(px, py));
|
H A D | Ellipse2D.java | 412 public boolean contains(double px, double py) { argument 418 double b = (py - getY()) / getHeight() - 0.5;
|
H A D | FlatteningPathIterator.java | 114 double py; field in class:FlatteningPathIterator 229 py = coords[1]; 235 buf[bufIndex + 1] = py; 263 py = buf[bufIndex + 1]; 277 buf[bufIndex + 1] = py; 305 py = buf[bufIndex + 1]; 334 coords[1] = (float)py; 351 coords[1] = py;
|
H A D | Line2D.java | 520 * @param py 525 public static int relativeCCW(double x1, double y1, double x2, double y2, double px, double py) { argument 527 * A = (x2-x1, y2-y1) P = (px-x1, py-y1) 532 py -= y1; 533 double t = px * y2 - py * x2; // PxA 535 t = px * x2 + py * y2; // P*A 538 py -= y2; 539 t = px * x2 + py * y2; // (P-A)*A 564 * @param py 569 public int relativeCCW(double px, double py) { argument 704 ptSegDistSq(double x1, double y1, double x2, double y2, double px, double py) argument 749 ptSegDist(double x1, double y1, double x2, double y2, double px, double py) argument 763 ptSegDistSq(double px, double py) argument 788 ptSegDist(double px, double py) argument 820 ptLineDistSq(double x1, double y1, double x2, double y2, double px, double py) argument 847 ptLineDist(double x1, double y1, double x2, double y2, double px, double py) argument 862 ptLineDistSq(double px, double py) argument 890 ptLineDist(double px, double py) argument 907 contains(double px, double py) argument [all...] |
H A D | Rectangle2D.java | 173 public int outcode(double px, double py) { argument 186 } else if (py < y) { 188 } else if (py > y + height) { 327 public int outcode(double px, double py) { argument 340 } else if (py < y) { 342 } else if (py > y + height) {
|
H A D | RoundRectangle2D.java | 550 public boolean contains(double px, double py) { argument 560 if (px < rx1 || px >= rx2 || py < ry1 || py >= ry2) { 577 if (py < ry1 + ah) { 579 } else if (py > ry2 - ah) { 586 py = (py - cy) / ah; 587 return px * px + py * py <= 1.0;
|
H A D | Arc2D.java | 1052 public boolean contains(double px, double py) { argument 1055 double ny = (py - getY()) / getHeight() - 0.5; 1076 int ccw1 = l.relativeCCW(px, py);
|
H A D | CubicCurve2D.java | 1001 public boolean contains(double px, double py) { argument 1002 return Crossing.isInsideEvenOdd(Crossing.crossShape(this, px, py));
|
H A D | GeneralPath.java | 578 public boolean contains(double px, double py) { argument 579 return isInside(Crossing.crossShape(this, px, py));
|
H A D | QuadCurve2D.java | 871 public boolean contains(double px, double py) { argument 872 return Crossing.isInsideEvenOdd(Crossing.crossShape(this, px, py));
|
H A D | AffineTransform.java | 597 * @param py 600 public void setToRotation(double angle, double px, double py) { argument 602 m02 = px * (1.0 - m00) + py * m10; 603 m12 = py * (1.0 - m00) - px * m10; 750 * @param py 753 public void rotate(double angle, double px, double py) { argument 754 concatenate(AffineTransform.getRotateInstance(angle, px, py));
|
/frameworks/base/awt/java/awt/ |
H A D | Polygon.java | 230 * @param py 233 public void addPoint(int px, int py) { argument 247 ypoints[npoints] = py; 252 py), Math.max(bounds.getMaxX(), px), Math.max(bounds.getMaxY(), py));
|
H A D | Rectangle.java | 437 * @param py 441 public void add(int px, int py) { argument 444 int y1 = Math.min(y, py); 445 int y2 = Math.max(y + height, py); 477 * Determines whether or not the point with specified coordinates [px, py] 482 * @param py 484 * @return true, if the point with specified coordinates [px, py] is within 487 public boolean contains(int px, int py) { argument 491 if (px < x || py < y) { 495 py 557 inside(int px, int py) argument 634 outcode(double px, double py) argument [all...] |
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | mb_motion_comp.cpp | 149 MOT px[4], py[4]; local 196 dy = py[0] = py[1] = py[2] = py[3] = video->motY[imv]; 228 py[0] = video->motY[imv]; 229 py[1] = video->motY[imv+1]; 230 py[2] = video->motY[imv+mvwidth]; 231 py[3] = video->motY[imv+mvwidth+1]; 232 xsum = py[ [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Matrix.cpp | 70 static void setScale__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sx, jfloat sy, jfloat px, jfloat py) { argument 74 SkScalar py_ = SkFloatToScalar(py); 84 static void setRotate__FFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees, jfloat px, jfloat py) { argument 87 SkScalar py_ = SkFloatToScalar(py); 96 static void setSinCos__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sinValue, jfloat cosValue, jfloat px, jfloat py) { argument 100 SkScalar py_ = SkFloatToScalar(py); 110 static void setSkew__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat kx, jfloat ky, jfloat px, jfloat py) { argument 114 SkScalar py_ = SkFloatToScalar(py); 134 static jboolean preScale__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sx, jfloat sy, jfloat px, jfloat py) { argument 138 SkScalar py_ = SkFloatToScalar(py); 148 preRotate__FFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees, jfloat px, jfloat py) argument 160 preSkew__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat kx, jfloat ky, jfloat px, jfloat py) argument 184 postScale__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sx, jfloat sy, jfloat px, jfloat py) argument 198 postRotate__FFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees, jfloat px, jfloat py) argument 210 postSkew__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat kx, jfloat ky, jfloat px, jfloat py) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Matrix.java | 186 * Set the matrix to scale by sx and sy, with a pivot point at (px, py). 191 public void setScale(float sx, float sy, float px, float py) { argument 200 mValues[5] = -py; 208 addTransform(new float[] { 1, 0, px, 0, 1, py, 0, 0, 1 }); 227 * point at (px, py). The pivot point is the coordinate that should remain 231 public void setRotate(float degrees, float px, float py) { argument 240 mValues[5] = -py; 251 addTransform(new float[] { 1, 0, px, 0, 1, py, 0, 0, 1 }); 276 * pivot point at (px, py). The pivot point is the coordinate that should 280 public void setSinCos(float sinValue, float cosValue, float px, float py) { argument 320 setSkew(float kx, float ky, float px, float py) argument 397 preScale(float sx, float sy, float px, float py) argument 425 preRotate(float degrees, float px, float py) argument 453 preSkew(float kx, float ky, float px, float py) argument 508 postScale(float sx, float sy, float px, float py) argument 535 postRotate(float degrees, float px, float py) argument 569 postSkew(float kx, float ky, float px, float py) argument [all...] |
H A D | Canvas.java | 611 public void rotate(float degrees, float px, float py) { argument 614 g.translate(px, py); 616 g.translate(-px, -py); 632 public void scale(float sx, float sy, float px, float py) { argument 634 g.translate(px, py); 636 g.translate(-px, -py);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Matrix.java | 105 * Set the matrix to scale by sx and sy, with a pivot point at (px, py). 109 public void setScale(float sx, float sy, float px, float py) { argument 110 native_setScale(native_instance, sx, sy, px, py); 120 * point at (px, py). The pivot point is the coordinate that should remain 123 public void setRotate(float degrees, float px, float py) { argument 124 native_setRotate(native_instance, degrees, px, py); 136 * pivot point at (px, py). The pivot point is the coordinate that should 139 public void setSinCos(float sinValue, float cosValue, float px, float py) { argument 140 native_setSinCos(native_instance, sinValue, cosValue, px, py); 149 * Set the matrix to skew by sx and sy, with a pivot point at (px, py) 153 setSkew(float kx, float ky, float px, float py) argument 184 preScale(float sx, float sy, float px, float py) argument 200 preRotate(float degrees, float px, float py) argument 216 preSkew(float kx, float ky, float px, float py) argument 248 postScale(float sx, float sy, float px, float py) argument 264 postRotate(float degrees, float px, float py) argument 280 postSkew(float kx, float ky, float px, float py) argument 605 native_setScale(int native_object, float sx, float sy, float px, float py) argument 609 native_setRotate(int native_object, float degrees, float px, float py) argument 613 native_setSinCos(int native_object, float sinValue, float cosValue, float px, float py) argument 617 native_setSkew(int native_object, float kx, float ky, float px, float py) argument 625 native_preScale(int native_object, float sx, float sy, float px, float py) argument 629 native_preRotate(int native_object, float degrees, float px, float py) argument 633 native_preSkew(int native_object, float kx, float ky, float px, float py) argument 641 native_postScale(int native_object, float sx, float sy, float px, float py) argument 645 native_postRotate(int native_object, float degrees, float px, float py) argument 649 native_postSkew(int native_object, float kx, float ky, float px, float py) argument [all...] |
H A D | Canvas.java | 381 * @param py The y-coord for the pivot point (unchanged by the rotation) 383 public final void scale(float sx, float sy, float px, float py) { argument 384 translate(px, py); 386 translate(-px, -py); 401 * @param py The y-coord for the pivot point (unchanged by the rotation) 403 public final void rotate(float degrees, float px, float py) { argument 404 translate(px, py); 406 translate(-px, -py);
|