Lines Matching refs:left

27  * represented by the coordinates of its 4 edges (left, top, right bottom).
30 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom).
33 public float left;
45 * checking is performed, so the caller must ensure that left <= right and
48 * @param left The X coordinate of the left side of the rectangle
53 public RectF(float left, float top, float right, float bottom) {
54 this.left = left;
62 * rectangle (which is left unmodified).
69 left = top = right = bottom = 0.0f;
71 left = r.left;
80 left = top = right = bottom = 0.0f;
82 left = r.left;
95 return left == r.left && top == r.top && right == r.right && bottom == r.bottom;
100 int result = (left != +0.0f ? Float.floatToIntBits(left) : 0);
108 return "RectF(" + left + ", " + top + ", "
125 sb.append('['); sb.append(left); sb.append(',');
136 pw.print('['); pw.print(left); pw.print(',');
142 * Returns true if the rectangle is empty (left >= right or top >= bottom)
145 return left >= right || top >= bottom;
150 * (i.e. left <= right) so the result may be negative.
153 return right - left;
166 * a valid rectangle (i.e. left <= right)
169 return (left + right) * 0.5f;
184 left = right = top = bottom = 0;
190 * left <= right and top <= bottom.
192 * @param left The X coordinate of the left side of the rectangle
197 public void set(float left, float top, float right, float bottom) {
198 this.left = left;
211 this.left = src.left;
224 this.left = src.left;
231 * Offset the rectangle by adding dx to its left and right coordinates, and
234 * @param dx The amount to add to the rectangle's left and right coordinates
238 left += dx;
245 * Offset the rectangle to a specific (left, top) position,
248 * @param newLeft The new "left" coordinate for the rectangle
252 right += newLeft - left;
254 left = newLeft;
264 * @param dx The amount to add(subtract) from the rectangle's left(right)
268 left += dx;
275 * Returns true if (x,y) is inside the rectangle. The left and top are
277 * that for a x,y to be contained: left <= x < right and top <= y < bottom.
283 * means left <= x < right and top <= y < bottom
286 return left < right && top < bottom // check for empty first
287 && x >= left && x < right && y >= top && y < bottom;
295 * @param left The left side of the rectangle being tested for containment
302 public boolean contains(float left, float top, float right, float bottom) {
304 return this.left < this.right && this.top < this.bottom
306 && this.left <= left && this.top <= top
320 return this.left < this.right && this.top < this.bottom
322 && left <= r.left && top <= r.top
327 * If the rectangle specified by left,top,right,bottom intersects this
333 * @param left The left side of the rectangle being intersected with this
344 public boolean intersect(float left, float top, float right, float bottom) {
345 if (this.left < right && left < this.right
347 if (this.left < left) {
348 this.left = left;
376 return intersect(r.left, r.top, r.right, r.bottom);
392 if (a.left < b.right && b.left < a.right
394 left = Math.max(a.left, b.left);
409 * @param left The left side of the rectangle being tested for intersection
417 public boolean intersects(float left, float top, float right,
419 return this.left < right && left < this.right
434 return a.left < b.right && b.left < a.right
443 dst.set(FastMath.round(left), FastMath.round(top),
449 * floor of top and left, and the ceiling of right and bottom.
452 dst.set((int) Math.floor(left), (int) Math.floor(top),
461 * @param left The left edge being unioned with this rectangle
466 public void union(float left, float top, float right, float bottom) {
467 if ((left < right) && (top < bottom)) {
468 if ((this.left < this.right) && (this.top < this.bottom)) {
469 if (this.left > left)
470 this.left = left;
478 this.left = left;
494 union(r.left, r.top, r.right, r.bottom);
505 if (x < left) {
506 left = x;
518 * Swap top/bottom or left/right if there are flipped (i.e. left > right
521 * If the edges are already correct (i.e. left <= right and top <= bottom)
525 if (left > right) {
526 float temp = left;
527 left = right;
550 out.writeFloat(left);
581 left = in.readFloat();
593 left = left * scale;