Lines Matching refs:left

28  * represented by the coordinates of its 4 edges (left, top, right bottom).
31 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom).
34 public float left;
46 * checking is performed, so the caller must ensure that left <= right and
49 * @param left The X coordinate of the left side of the rectangle
54 public RectF(float left, float top, float right, float bottom) {
55 this.left = left;
63 * rectangle (which is left unmodified).
70 left = top = right = bottom = 0.0f;
72 left = r.left;
81 left = top = right = bottom = 0.0f;
83 left = r.left;
96 return left == r.left && top == r.top && right == r.right && bottom == r.bottom;
101 int result = (left != +0.0f ? Float.floatToIntBits(left) : 0);
109 return "RectF(" + left + ", " + top + ", "
126 sb.append('['); sb.append(left); sb.append(',');
137 pw.print('['); pw.print(left); pw.print(',');
143 * Returns true if the rectangle is empty (left >= right or top >= bottom)
146 return left >= right || top >= bottom;
151 * (i.e. left <= right) so the result may be negative.
154 return right - left;
167 * a valid rectangle (i.e. left <= right)
170 return (left + right) * 0.5f;
185 left = right = top = bottom = 0;
191 * left <= right and top <= bottom.
193 * @param left The X coordinate of the left side of the rectangle
198 public void set(float left, float top, float right, float bottom) {
199 this.left = left;
212 this.left = src.left;
225 this.left = src.left;
232 * Offset the rectangle by adding dx to its left and right coordinates, and
235 * @param dx The amount to add to the rectangle's left and right coordinates
239 left += dx;
246 * Offset the rectangle to a specific (left, top) position,
249 * @param newLeft The new "left" coordinate for the rectangle
253 right += newLeft - left;
255 left = newLeft;
265 * @param dx The amount to add(subtract) from the rectangle's left(right)
269 left += dx;
276 * Returns true if (x,y) is inside the rectangle. The left and top are
278 * that for a x,y to be contained: left <= x < right and top <= y < bottom.
284 * means left <= x < right and top <= y < bottom
287 return left < right && top < bottom // check for empty first
288 && x >= left && x < right && y >= top && y < bottom;
296 * @param left The left side of the rectangle being tested for containment
303 public boolean contains(float left, float top, float right, float bottom) {
305 return this.left < this.right && this.top < this.bottom
307 && this.left <= left && this.top <= top
321 return this.left < this.right && this.top < this.bottom
323 && left <= r.left && top <= r.top
328 * If the rectangle specified by left,top,right,bottom intersects this
334 * @param left The left side of the rectangle being intersected with this
345 public boolean intersect(float left, float top, float right, float bottom) {
346 if (this.left < right && left < this.right
348 if (this.left < left) {
349 this.left = left;
377 return intersect(r.left, r.top, r.right, r.bottom);
393 if (a.left < b.right && b.left < a.right
395 left = Math.max(a.left, b.left);
410 * @param left The left side of the rectangle being tested for intersection
418 public boolean intersects(float left, float top, float right,
420 return this.left < right && left < this.right
435 return a.left < b.right && b.left < a.right
444 dst.set(FastMath.round(left), FastMath.round(top),
450 * floor of top and left, and the ceiling of right and bottom.
453 dst.set((int) FloatMath.floor(left), (int) FloatMath.floor(top),
462 * @param left The left edge being unioned with this rectangle
467 public void union(float left, float top, float right, float bottom) {
468 if ((left < right) && (top < bottom)) {
469 if ((this.left < this.right) && (this.top < this.bottom)) {
470 if (this.left > left)
471 this.left = left;
479 this.left = left;
495 union(r.left, r.top, r.right, r.bottom);
506 if (x < left) {
507 left = x;
519 * Swap top/bottom or left/right if there are flipped (i.e. left > right
522 * If the edges are already correct (i.e. left <= right and top <= bottom)
526 if (left > right) {
527 float temp = left;
528 left = right;
551 out.writeFloat(left);
582 left = in.readFloat();