|
2 | 2 | # License:: The MIT License (MIT) |
3 | 3 |
|
4 | 4 | # Bounding boxes are three-dimensional boxes (eight corners), aligned with the |
5 | | -# global axes, that surround entities within your model. There is a default |
| 5 | +# axes, that surround entities within your model. There is a default |
6 | 6 | # bounding box for any new model that will surround all entities, |
7 | 7 | # including all groups and components. Additionally, there are |
8 | 8 | # bounding boxes for Drawingelement objects, including components and groups. |
@@ -154,15 +154,17 @@ def contains?(point_or_bb) |
154 | 154 | def corner(corner_index) |
155 | 155 | end |
156 | 156 |
|
157 | | - # The {#depth} method is used to retrieve the depth of the bounding box. |
| 157 | + # The {#depth} method is used to retrieve the Z extents of the bounding box. |
158 | 158 | # |
159 | 159 | # @example |
160 | 160 | # boundingbox = Geom::BoundingBox.new |
161 | 161 | # boundingbox.add([100, 200, -400], [200, 400, 100]) |
162 | 162 | # # This will return a Length of 500.0. |
163 | | - # length = boundingbox.depth |
| 163 | + # height = boundingbox.depth |
164 | 164 | # |
165 | | - # @return [Length] the depth of the bounding box |
| 165 | + # @note In SketchUp's coordinate system, this corresponds to the height. |
| 166 | + # |
| 167 | + # @return [Length] |
166 | 168 | # |
167 | 169 | # @version SketchUp 6.0 |
168 | 170 | def depth |
@@ -200,15 +202,17 @@ def diagonal |
200 | 202 | def empty? |
201 | 203 | end |
202 | 204 |
|
203 | | - # The {#height} method is used to retrieve the height of the bounding box. |
| 205 | + # The {#height} method is used to retrieve the Y extent of the bounding box. |
204 | 206 | # |
205 | 207 | # @example |
206 | 208 | # boundingbox = Geom::BoundingBox.new |
207 | 209 | # boundingbox.add([100, 200, -400], [200, 400, 100]) |
208 | 210 | # # This will return a Length of 200.0. |
209 | | - # length = boundingbox.height |
| 211 | + # depth = boundingbox.height |
| 212 | + # |
| 213 | + # @note In SketchUp's coordinate system, this corersponds to the depth. |
210 | 214 | # |
211 | | - # @return [Length] the height of the bounding box |
| 215 | + # @return [Length] |
212 | 216 | # |
213 | 217 | # @version SketchUp 6.0 |
214 | 218 | def height |
@@ -301,15 +305,15 @@ def min |
301 | 305 | def valid? |
302 | 306 | end |
303 | 307 |
|
304 | | - # The {#width} method is used to retrieve the width of the bounding box. |
| 308 | + # The {#width} method is used to retrieve the X extent of the bounding box. |
305 | 309 | # |
306 | 310 | # @example |
307 | 311 | # boundingbox = Geom::BoundingBox.new |
308 | 312 | # boundingbox.add([100, 200, -400], [200, 400, 100]) |
309 | 313 | # # This will return a Length of 100.0. |
310 | | - # length = boundingbox.width |
| 314 | + # width = boundingbox.width |
311 | 315 | # |
312 | | - # @return [Length] the width of the bounding box |
| 316 | + # @return [Length] |
313 | 317 | # |
314 | 318 | # @version SketchUp 6.0 |
315 | 319 | def width |
|
0 commit comments