Searched defs:py (Results 1 - 23 of 23) sorted by relevance

/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthComboPopup.java75 protected Rectangle computePopupBounds(int px, int py, int pw, int ph) { argument
83 py + i.top,
88 return super.computePopupBounds(px, py, pw, ph);
/openjdk7/jdk/src/share/classes/java/awt/geom/
H A DPoint2D.java321 * @param py the Y coordinate of the specified point to be measured
327 public double distanceSq(double px, double py) { argument
329 py -= getY();
330 return (px * px + py * py);
345 double py = pt.getY() - this.getY();
346 return (px * px + py * py);
355 * @param py the Y coordinate of the specified point to be measured
361 public double distance(double px, double py) { argument
[all...]
H A DLine2D.java464 * {@code (px,py)} lies with respect to the line segment from
469 * specified point {@code (px,py)}.
497 * @param py the Y coordinate of the specified point to be
506 double px, double py)
511 py -= y1;
512 double ccw = px * y2 - py * x2;
516 // relative value using the projection of px,py onto the
520 ccw = px * x2 + py * y2;
524 // px and py need to have (x2 - x1) or (y2 - y1) subtracted
530 py
504 relativeCCW(double x1, double y1, double x2, double y2, double px, double py) argument
555 relativeCCW(double px, double py) argument
672 ptSegDistSq(double x1, double y1, double x2, double y2, double px, double py) argument
747 ptSegDist(double x1, double y1, double x2, double y2, double px, double py) argument
770 ptSegDistSq(double px, double py) argument
810 ptSegDist(double px, double py) argument
854 ptLineDistSq(double x1, double y1, double x2, double y2, double px, double py) argument
899 ptLineDist(double x1, double y1, double x2, double y2, double px, double py) argument
922 ptLineDistSq(double px, double py) argument
962 ptLineDist(double px, double py) argument
[all...]
H A DPath2D.java140 abstract int pointCrossings(double px, double py); argument
475 int pointCrossings(double px, double py) { argument
487 Curve.pointCrossingsForLine(px, py,
496 Curve.pointCrossingsForLine(px, py,
505 Curve.pointCrossingsForQuad(px, py,
517 Curve.pointCrossingsForCubic(px, py,
532 Curve.pointCrossingsForLine(px, py,
543 Curve.pointCrossingsForLine(px, py,
1199 int pointCrossings(double px, double py) { argument
1211 Curve.pointCrossingsForLine(px, py,
[all...]
/openjdk7/jdk/src/share/native/sun/security/ec/impl/
H A Decl.c414 mp_int *py)
424 return group->validate_point(px, py, group);
413 ECPoint_validate(const ECGroup *group, const mp_int *px, const mp_int *py) argument
H A Decl_mult.c52 const mp_int *py, mp_int *rx, mp_int *ry)
71 if ((px == NULL) || (py == NULL)) {
82 MP_CHECKOK(group->meth->field_enc(py, ry, group->meth));
85 MP_CHECKOK(group->point_mul(&kt, px, py, rx, ry, group));
106 const mp_int *py, mp_int *rx, mp_int *ry,
115 || (py == NULL))), MP_BADARG);
119 return ECPoint_mul(group, k2, px, py, rx, ry);
120 } else if ((k2 == NULL) || (px == NULL) || (py == NULL)) {
130 MP_CHECKOK(ECPoint_mul(group, k2, px, py, rx, ry));
161 const mp_int *py, mp_in
51 ECPoint_mul(const ECGroup *group, const mp_int *k, const mp_int *px, const mp_int *py, mp_int *rx, mp_int *ry) argument
105 ec_pts_mul_basic(const mp_int *k1, const mp_int *k2, const mp_int *px, const mp_int *py, mp_int *rx, mp_int *ry, const ECGroup *group) argument
160 ec_pts_mul_simul_w2(const mp_int *k1, const mp_int *k2, const mp_int *px, const mp_int *py, mp_int *rx, mp_int *ry, const ECGroup *group) argument
310 ECPoints_mul(const ECGroup *group, const mp_int *k1, const mp_int *k2, const mp_int *px, const mp_int *py, mp_int *rx, mp_int *ry) argument
[all...]
H A Dec2_aff.c45 /* Checks if point P(px, py) is at infinity. Uses affine coordinates. */
47 ec_GF2m_pt_is_inf_aff(const mp_int *px, const mp_int *py) argument
50 if ((mp_cmp_z(px) == 0) && (mp_cmp_z(py) == 0)) {
58 /* Sets P(px, py) to be the point at infinity. Uses affine coordinates. */
60 ec_GF2m_pt_set_inf_aff(mp_int *px, mp_int *py) argument
63 mp_zero(py);
70 ec_GF2m_pt_add_aff(const mp_int *px, const mp_int *py, const mp_int *qx, argument
84 if (ec_GF2m_pt_is_inf_aff(px, py) == 0) {
93 MP_CHECKOK(mp_copy(py, ry));
97 /* if px != qx, then lambda = (py
152 ec_GF2m_pt_sub_aff(const mp_int *px, const mp_int *py, const mp_int *qx, const mp_int *qy, mp_int *rx, mp_int *ry, const ECGroup *group) argument
172 ec_GF2m_pt_dbl_aff(const mp_int *px, const mp_int *py, mp_int *rx, mp_int *ry, const ECGroup *group) argument
183 ec_GF2m_pt_mul_aff(const mp_int *n, const mp_int *px, const mp_int *py, mp_int *rx, mp_int *ry, const ECGroup *group) argument
276 ec_GF2m_validate_point(const mp_int *px, const mp_int *py, const ECGroup *group) argument
[all...]
H A Dec2_mont.c186 ec_GF2m_pt_mul_mont(const mp_int *n, const mp_int *px, const mp_int *py, argument
204 if ((mp_cmp_z(n) == 0) || (ec_GF2m_pt_is_inf_aff(px, py) == MP_YES)) {
258 i = gf2m_Mxy(px, py, &x1, &z1, &x2, &z2, group);
H A Decp_aff.c49 /* Checks if point P(px, py) is at infinity. Uses affine coordinates. */
51 ec_GFp_pt_is_inf_aff(const mp_int *px, const mp_int *py) argument
54 if ((mp_cmp_z(px) == 0) && (mp_cmp_z(py) == 0)) {
62 /* Sets P(px, py) to be the point at infinity. Uses affine coordinates. */
64 ec_GFp_pt_set_inf_aff(mp_int *px, mp_int *py) argument
67 mp_zero(py);
76 ec_GFp_pt_add_aff(const mp_int *px, const mp_int *py, const mp_int *qx, argument
92 if (ec_GFp_pt_is_inf_aff(px, py) == 0) {
101 MP_CHECKOK(mp_copy(py, ry));
105 /* if px != qx, then lambda = (py
162 ec_GFp_pt_sub_aff(const mp_int *px, const mp_int *py, const mp_int *qx, const mp_int *qy, mp_int *rx, mp_int *ry, const ECGroup *group) argument
183 ec_GFp_pt_dbl_aff(const mp_int *px, const mp_int *py, mp_int *rx, mp_int *ry, const ECGroup *group) argument
196 ec_GFp_pt_mul_aff(const mp_int *n, const mp_int *px, const mp_int *py, mp_int *rx, mp_int *ry, const ECGroup *group) argument
289 ec_GFp_validate_point(const mp_int *px, const mp_int *py, const ECGroup *group) argument
[all...]
H A Decp_jm.c55 ec_GFp_pt_dbl_jm(const mp_int *px, const mp_int *py, const mp_int *pz, argument
72 if (ec_GFp_pt_is_inf_jac(px, py, pz) == MP_YES) {
85 /* rz = 2 * py * pz */
86 MP_CHECKOK(group->meth->field_mul(py, pz, S, group->meth));
90 MP_CHECKOK(group->meth->field_sqr(py, t0, group->meth));
95 /* S = 4 * px * py^2 = 2 * px * t0 */
119 /* Computes R = P + Q where R is (rx, ry, rz), P is (px, py, pz) and Q is
125 ec_GFp_pt_add_jm_aff(const mp_int *px, const mp_int *py, const mp_int *pz, argument
146 if (ec_GFp_pt_is_inf_jac(px, py, pz) == MP_YES) {
156 MP_CHECKOK(mp_copy(py, r
215 ec_GFp_pt_mul_jm_wNAF(const mp_int *n, const mp_int *px, const mp_int *py, mp_int *rx, mp_int *ry, const ECGroup *group) argument
[all...]
H A Decp_jac.c52 /* Converts a point P(px, py) from affine coordinates to Jacobian
57 ec_GFp_pt_aff2jac(const mp_int *px, const mp_int *py, mp_int *rx, argument
62 if (ec_GFp_pt_is_inf_aff(px, py) == MP_YES) {
66 MP_CHECKOK(mp_copy(py, ry));
76 /* Converts a point P(px, py, pz) from Jacobian projective coordinates to
81 ec_GFp_pt_jac2aff(const mp_int *px, const mp_int *py, const mp_int *pz, argument
95 if (ec_GFp_pt_is_inf_jac(px, py, pz) == MP_YES) {
100 /* transform (px, py, pz) into (px / pz^2, py / pz^3) */
103 MP_CHECKOK(mp_copy(py, r
122 ec_GFp_pt_is_inf_jac(const mp_int *px, const mp_int *py, const mp_int *pz) argument
130 ec_GFp_pt_set_inf_jac(mp_int *px, mp_int *py, mp_int *pz) argument
144 ec_GFp_pt_add_jac_aff(const mp_int *px, const mp_int *py, const mp_int *pz, const mp_int *qx, const mp_int *qy, mp_int *rx, mp_int *ry, mp_int *rz, const ECGroup *group) argument
233 ec_GFp_pt_dbl_jac(const mp_int *px, const mp_int *py, const mp_int *pz, mp_int *rx, mp_int *ry, mp_int *rz, const ECGroup *group) argument
326 ec_GFp_pt_mul_jac(const mp_int *n, const mp_int *px, const mp_int *py, mp_int *rx, mp_int *ry, const ECGroup *group) argument
407 ec_GFp_pts_mul_jac(const mp_int *k1, const mp_int *k2, const mp_int *px, const mp_int *py, mp_int *rx, mp_int *ry, const ECGroup *group) argument
[all...]
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaComboBoxPopup.java230 protected Rectangle computePopupBounds(int px, int py, int pw, int ph) { argument
237 py = Math.min((py / 2) + 9, py); // if py is less than new y we have a clipped combo, so leave it alone.
240 // px & py are relative to the combo box
250 if (scrBounds == null) return super.computePopupBounds(px, py, pw, ph);
277 py -= (comboBoxInsets.bottom); //sja fix was +kInset
281 p.y += py; // Screen location of px & py
323 computePopupBoundsForMenu(final int px, final int py, final int pw, final int ph, final int itemCount, final Rectangle scrBounds) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/java2d/pipe/
H A DPixelToParallelogramConverter.java280 double py = y1 - udx / 2.0;
283 py -= udy / 2.0;
288 px, py, -udy, udx, dx, dy);
296 double px, py;
304 py = rx * dy1 + ry * dy2 + txform.getTranslateY();
314 double newy = normalize(py);
316 dy1 = normalize(py + dy1) - newy;
318 dy2 = normalize(py + dy2) - newy;
320 py = newy;
323 px, py, dx
388 fillOuterParallelogram(SunGraphics2D sg2d, double ux1, double uy1, double ux2, double uy2, double px, double py, double dx1, double dy1, double dx2, double dy2, double len1, double len2, double lw1, double lw2) argument
[all...]
/openjdk7/jdk/src/share/native/sun/font/
H A DDrawGlyphList.c102 jfloat py = y + positions[++n]; local
111 FLOOR_ASSIGN(gbv->glyphs[g].y, py + ginfo->topLeftY);
553 jfloat px, py; local
563 py = y + positions[++n];
624 FLOOR_ASSIGN(gbv->glyphs[g].y, py + ginfo->topLeftY);
/openjdk7/jdk/src/share/classes/sun/awt/geom/
H A DCurve.java112 * crosses the ray extending to the right from (px,py).
125 double px, double py)
146 crossings += pointCrossingsForLine(px, py,
156 crossings += pointCrossingsForLine(px, py,
165 crossings += pointCrossingsForQuad(px, py,
175 crossings += pointCrossingsForCubic(px, py,
185 crossings += pointCrossingsForLine(px, py,
196 crossings += pointCrossingsForLine(px, py,
205 * crosses the ray extending to the right from (px,py).
210 public static int pointCrossingsForLine(double px, double py, argument
124 pointCrossingsForPath(PathIterator pi, double px, double py) argument
234 pointCrossingsForQuad(double px, double py, double x0, double y0, double xc, double yc, double x1, double y1, int level) argument
285 pointCrossingsForCubic(double px, double py, double x0, double y0, double xc0, double yc0, double xc1, double yc1, double x1, double y1, int level) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/font/
H A DLayoutPathImpl.java134 private double py; field in class:LayoutPathImpl.SegmentPathBuilder
157 px = py = 0;
211 if (x == px && y == py) {
227 data[w-2] = py = y;
240 double dy = y - py;
251 py = y;
421 double py = y - by;
426 double dot = dx * px + dy * py; // dot product
528 double py = result.getY() - by;
535 double rx = (px * dx + py * d
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicComboPopup.java1210 * @param py starting y location
1215 protected Rectangle computePopupBounds(int px,int py,int pw,int ph) { argument
1235 Rectangle rect = new Rectangle(px,py,pw,ph);
1236 if (py+ph > screenBounds.y+screenBounds.height
/openjdk7/jdk/src/windows/native/sun/java2d/d3d/
H A DD3DVertexCacher.cpp563 float px = fx11, py = fy11; local
566 ADJUST_PGRAM(py, dy21, ph);
568 ADJUST_PGRAM(py, dy12, ph);
570 float py1 = floor(py);
572 float py2 = ceil(py + ph);
H A DD3DContext.cpp160 D3DUtils_2DTransformXY(D3DMATRIX *m, float *px, float *py) argument
163 float y = *py;
166 *py = x * m->_12 + y * m->_22 + m->_42;
170 D3DUtils_2DInverseTransformXY(D3DMATRIX *m, float *px, float *py) argument
172 float x = *px, y = *py;
180 *py = 0.0f;
183 *py = (y * m->_11 - x * m->_12) / det;
/openjdk7/jdk/src/share/native/sun/java2d/cmm/lcms/
H A Dcmsintrp.c332 cmsFloat32Number px, py; local
343 py = Input[1] * p->Domain[1];
346 y0 = (int) _cmsQuickFloor(py); fy = py - (cmsFloat32Number) y0;
444 cmsFloat32Number px, py, pz; local
458 py = Input[1];
463 if (py < 0) py = 0;
464 if (py > 1) py
602 cmsFloat32Number px, py, pz; local
[all...]
H A Dcmsopt.c411 cmsFloat64Number px, py, pz, pw; local
423 py = ((cmsFloat64Number) At[1] * (p16->Domain[1])) / 65535.0;
428 y0 = (int) floor(py);
433 ((py - y0) != 0) ||
446 py = ((cmsFloat64Number) At[1] * (p16->Domain[1])) / 65535.0;
450 y0 = (int) floor(py);
454 ((py - y0) != 0) ||
/openjdk7/jdk/src/share/native/sun/java2d/loops/
H A DProcessPath.c578 jint py = (y0 & (~MDP_W_MASK)) << DF_QUAD_SHIFT; local
624 py <<=2;
631 py += dpy;
640 y2 = y0w + (py >> shift);
1006 jint py = (y0 & (~MDP_W_MASK)) << DF_CUB_SHIFT; local
1077 py <<=3;
1103 py >>=3;
1116 py += dpy;
1127 y2 = y0w + (py >> shift);
/openjdk7/jdk/src/share/native/sun/java2d/pipe/
H A DShapeSpanIterator.c921 jfloat px, jfloat py)
929 /* px,py becomes relative vector from x0,y0 to test point */
931 py -= y0;
932 dotprod = px * x1 + py * y1;
934 /* px,py is on the side of x0,y0 away from x1,y1 */
935 /* distance to segment is length of px,py vector */
941 /* to get px,py to be the negative of px,py=>x1,y1 */
945 py = y1 - py;
919 ptSegDistSq(jfloat x0, jfloat y0, jfloat x1, jfloat y1, jfloat px, jfloat py) argument
[all...]

Completed in 93 milliseconds