mozilla

Compare Revisions

Rect

Change Revisions

Revision 94493:

Revision 94493 by Sheppy on

Revision 94494:

Revision 94494 by Sheppy on

Title:
Rect
Rect
Slug:
JavaScript_code_modules/Geometry.jsm/Rect
JavaScript_code_modules/Geometry.jsm/Rect
Tags:
NeedsExample, Modules, Geometry
NeedsExample, Modules, Geometry
Content:

Revision 94493
Revision 94494
t20            <code>Rect blend(Rect otherRect, Number scalar);<br><t20            <code>Rect <a href="/en/JavaScript_code_modules/Geome
>/code>>try.jsm/Rect#blend()" title="en/JavaScript code modules/Geometry.
 >jsm/Rect#blend()">blend</a>(Rect otherRect, Number scalar);<br></
 >code>
21          </td>
22        </tr>
23        <tr>
24          <td>21          </td>
25            <code>Point center();<br></code>22        </tr>
23        <tr>
26          </td>24          <td>
27        </tr>25            <code>Point <a href="/en/JavaScript_code_modules/Geom
 >etry.jsm/Rect#center()" title="en/JavaScript code modules/Geometr
 >y.jsm/Rect#center()">center</a>();<br></code>
28        <tr>
29          <td>26          </td>
30            <code>Rect clone();<br></code>27        </tr>
28        <tr>
31          </td>29          <td>
32        </tr>30            <code>Rect <a href="/en/JavaScript_code_modules/Geome
 >try.jsm/Rect#clone()" title="en/JavaScript code modules/Geometry.
 >jsm/Rect#clone()">clone</a>();<br></code>
33        <tr>
34          <td>31          </td>
35            <code>boolean contains(Rect otherRect);<br></code>32        </tr>
33        <tr>
36          </td>34          <td>
37        </tr>35            <code>boolean <a href="/en/JavaScript_code_modules/Ge
 >ometry.jsm/Rect#contains()" title="en/JavaScript code modules/Geo
 >metry.jsm/Rect#contains()">contains</a>(Rect otherRect);<br></cod
 >e>
38        <tr>
39          <td>36          </td>
40            <code>Rect copyFrom(Rect otherRect);<br></code>37        </tr>
38        <tr>
41          </td>39          <td>
42        </tr>40            <code>Rect <a href="/en/JavaScript_code_modules/Geome
 >try.jsm/Rect#copyFrom()" title="en/JavaScript code modules/Geomet
 >ry.jsm/Rect#copyFrom()">copyFrom</a>(Rect otherRect);<br></code>
43        <tr>
44          <td>41          </td>
45            <code>boolean equals(Rect otherRect);<br></code>42        </tr>
43        <tr>
46          </td>44          <td>
47        </tr>45            <code>boolean <a href="/en/JavaScript_code_modules/Ge
 >ometry.jsm/Rect#equals()" title="en/JavaScript code modules/Geome
 >try.jsm/Rect#equals()">equals</a>(Rect otherRect);<br></code>
48        <tr>
49          <td>46          </td>
50            <code>Rect expandToContain(Rect otherRect);</code>47        </tr>
48        <tr>
51          </td>49          <td>
52        </tr>50            <code>Rect <a href="/en/JavaScript_code_modules/Geome
 >try.jsm/Rect#expandToContain()" title="en/JavaScript code modules
 >/Geometry.jsm/Rect#expandToContain()">expandToContain</a>(Rect ot
 >herRect);</code>
53        <tr>
54          <td>51          </td>
55            <code>Rect expandToIntegers();<br></code>52        </tr>
53        <tr>
56          </td>54          <td>
57        </tr>55            <code>Rect <a href="/en/JavaScript_code_modules/Geome
 >try.jsm/Rect#expandToIntegers()" title="en/JavaScript code module
 >s/Geometry.jsm/Rect#expandToIntegers()">expandToIntegers</a>();<b
 >r></code>
58        <tr>
59          <td>56          </td>
60            <code>Rect inflate(</code><code>Number</code> <code>x57        </tr>
>Scale[,</code> <code>Number</code> <code>yScale]);<br></code> 
58        <tr>
61          </td>59          <td>
62        </tr>60            <code>Rect <a href="/en/JavaScript_code_modules/Geome
 >try.jsm/Rect#inflate()" title="en/JavaScript code modules/Geometr
 >y.jsm/Rect#inflate()">inflate</a>(</code><code>Number</code> <cod
 >e>xScale[,</code> <code>Number</code> <code>yScale]);<br></code>
63        <tr>
64          <td>61          </td>
65            <code>Rect intersect(Rect otherRect);</code>62        </tr>
63        <tr>
66          </td>64          <td>
67        </tr>65            <code>Rect <a href="/en/JavaScript_code_modules/Geome
 >try.jsm/Rect#intersect()" title="en/JavaScript code modules/Geome
 >try.jsm/Rect#intersect()">intersect</a>(Rect otherRect);</code>
68        <tr>
69          <td>66          </td>
70            <code>boolean intersects(Rect otherRect);</code>67        </tr>
68        <tr>
71          </td>69          <td>
72        </tr>70            <code>boolean <a href="/en/JavaScript_code_modules/Ge
 >ometry.jsm/Rect#intersects()" title="en/JavaScript code modules/G
 >eometry.jsm/Rect#intersects()">intersects</a>(Rect otherRect);</c
 >ode>
73        <tr>
74          <td>71          </td>
75            <code>boolean isEmpty();<br></code>72        </tr>
73        <tr>
76          </td>74          <td>
77        </tr>75            <code>boolean <a href="/en/JavaScript_code_modules/Ge
 >ometry.jsm/Rect#isEmpty()" title="en/JavaScript code modules/Geom
 >etry.jsm/Rect#isEmpty()">isEmpty</a>();<br></code>
78        <tr>
79          <td>76          </td>
80            <code>Rect map(mapFunction);<br></code>77        </tr>
78        <tr>
81          </td>79          <td>
82        </tr>80            <code>Rect <a href="/en/JavaScript_code_modules/Geome
 >try.jsm/Rect#map()" title="en/JavaScript code modules/Geometry.js
 >m/Rect#map()">map</a>(mapFunction);<br></code>
83        <tr>
84          <td>81          </td>
85            <code>Rect restrictTo(Rect otherRect);</code>82        </tr>
83        <tr>
86          </td>84          <td>
87        </tr>85            <code>Rect <a href="/en/JavaScript_code_modules/Geome
 >try.jsm/Rect#restrictTo()" title="en/JavaScript code modules/Geom
 >etry.jsm/Rect#restrictTo()">restrictTo</a>(Rect otherRect);</code
 >>
88        <tr>
89          <td>86          </td>
90            <code>Rect scale(</code><code>Number</code> <code>xSc87        </tr>
>ale,</code> <code>Number</code> <code>yScale);<br></code> 
88        <tr>
91          </td>89          <td>
92        </tr>90            <code>Rect <a href="/en/JavaScript_code_modules/Geome
 >try.jsm/Rect#scale()" title="en/JavaScript code modules/Geometry.
 >jsm/Rect#scale()">scale</a>(</code><code>Number</code> <code>xSca
 >le,</code> <code>Number</code> <code>yScale);<br></code>
93        <tr>
94          <td>91          </td>
95            <code>Rect setBounds(</code><code>Number</code> <code92        </tr>
>>left,</code> <code>Number</code> <code>top,</code> <code>Number< 
>/code> <code>right,</code> <code>Number</code> <code>bottom);<br> 
></code> 
93        <tr>
96          </td>94          <td>
97        </tr>95            <code>Rect <a href="/en/JavaScript_code_modules/Geome
 >try.jsm/Rect#setBounds()" title="en/JavaScript code modules/Geome
 >try.jsm/Rect#setBounds()">setBounds</a>(</code><code>Number</code
 >> <code>left,</code> <code>Number</code> <code>top,</code> <code>
 >Number</code> <code>right,</code> <code>Number</code> <code>botto
 >m);<br></code>
98        <tr>
99          <td>96          </td>
100            <code>Rect setRect(</code><code>Number</code> <code>x97        </tr>
>,</code> <code>Number</code> <code>y,</code> <code>Number</code>  
><code>width,</code> <code>Number</code> <code>height);<br></code> 
98        <tr>
101          </td>99          <td>
102        </tr>100            <code>Rect <a href="/en/JavaScript_code_modules/Geome
 >try.jsm/Rect#setRect()" title="en/JavaScript code modules/Geometr
 >y.jsm/Rect#setRect()">setRect</a>(</code><code>Number</code> <cod
 >e>x,</code> <code>Number</code> <code>y,</code> <code>Number</cod
 >e> <code>width,</code> <code>Number</code> <code>height);<br></co
 >de>
103        <tr>
104          <td>101          </td>
105            <code>Rect setRect(Rect otherRect);<br></code>102        </tr>
103        <tr>
106          </td>104          <td>
107        </tr>105            <code>Rect</code> <code><a href="/en/JavaScript_code_
 >modules/Geometry.jsm/Rect#setRect()" title="en/JavaScript code mo
 >dules/Geometry.jsm/Rect#setRect()">setRect</a></code><code>(Rect 
 >otherRect);<br></code>
108        <tr>
109          <td>106          </td>
110            <code>Rect[] subtract(Rect otherRect);<br></code>107        </tr>
108        <tr>
111          </td>109          <td>
112        </tr>110            <code>Rect[] <a href="/en/JavaScript_code_modules/Geo
 >metry.jsm/Rect#subtract()" title="en/JavaScript code modules/Geom
 >etry.jsm/Rect#subtract()">subtract</a>(Rect otherRect);<br></code
 >>
113        <tr>
114          <td>111          </td>
115            <code>String toString();<br></code>112        </tr>
113        <tr>
116          </td>114          <td>
117        </tr>115            <code>String <a href="/en/JavaScript_code_modules/Geo
 >metry.jsm/Rect#toString()" title="en/JavaScript code modules/Geom
 >etry.jsm/Rect#toString()">toString</a>();<br></code>
118        <tr>
119          <td>116          </td>
120            <code>Rect translate(</code><code>Number deltaX</code117        </tr>
>><code>,</code> <code>Number</code> <code>deltaY);<br></code> 
118        <tr>
121          </td>119          <td>
122        </tr>120            <code>Rect <a href="/en/JavaScript_code_modules/Geome
 >try.jsm/Rect#translate()" title="en/JavaScript code modules/Geome
 >try.jsm/Rect#translate()">translate</a>(</code><code>Number delta
 >X</code><code>,</code> <code>Number</code> <code>deltaY);<br></co
 >de>
123        <tr>
124          <td>121          </td>
125            <code>Rect translateInside(Rect otherRect);<br></code122        </tr>
>> 
123        <tr>
126          </td>124          <td>
127        </tr>125            <code>Rect <a href="/en/JavaScript_code_modules/Geome
 >try.jsm/Rect#translateInside()" title="en/JavaScript code modules
 >/Geometry.jsm/Rect#translateInside()">translateInside</a>(Rect ot
 >herRect);<br></code>
128        <tr>
129          <td>126          </td>
130            <code>Rect union(Rect otherRect);<br></code>127        </tr>
128        <tr>
129          <td>
130            <code>Rect <a href="/en/JavaScript_code_modules/Geome
 >try.jsm/Rect#union()" title="en/JavaScript code modules/Geometry.
 >jsm/Rect#union()">union</a>(Rect otherRect);<br></code>

Back to History