sketchup-api-stubs 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/SketchUp/Geom/BoundingBox.rb +17 -20
  3. data/SketchUp/Geom/Bounds2d.rb +172 -0
  4. data/SketchUp/Geom/LatLong.rb +31 -16
  5. data/SketchUp/Geom/OrientedBounds2d.rb +102 -0
  6. data/SketchUp/Geom/Point2d.rb +365 -0
  7. data/SketchUp/Geom/Point3d.rb +121 -110
  8. data/SketchUp/Geom/PolygonMesh.rb +30 -21
  9. data/SketchUp/Geom/Transformation.rb +8 -4
  10. data/SketchUp/Geom/Transformation2d.rb +125 -0
  11. data/SketchUp/Geom/UTM.rb +43 -37
  12. data/SketchUp/Geom/Vector2d.rb +497 -0
  13. data/SketchUp/Geom/Vector3d.rb +143 -131
  14. data/SketchUp/Layout.rb +25 -0
  15. data/SketchUp/Layout/AngularDimension.rb +569 -0
  16. data/SketchUp/Layout/AutoTextDefinition.rb +417 -0
  17. data/SketchUp/Layout/AutoTextDefinitions.rb +186 -0
  18. data/SketchUp/Layout/ConnectionPoint.rb +70 -0
  19. data/SketchUp/Layout/Document.rb +458 -0
  20. data/SketchUp/Layout/Ellipse.rb +29 -0
  21. data/SketchUp/Layout/Entities.rb +155 -0
  22. data/SketchUp/Layout/Entity.rb +363 -0
  23. data/SketchUp/Layout/FormattedText.rb +349 -0
  24. data/SketchUp/Layout/Grid.rb +131 -0
  25. data/SketchUp/Layout/Group.rb +261 -0
  26. data/SketchUp/Layout/Image.rb +86 -0
  27. data/SketchUp/Layout/Label.rb +371 -0
  28. data/SketchUp/Layout/Layer.rb +222 -0
  29. data/SketchUp/Layout/LayerInstance.rb +128 -0
  30. data/SketchUp/Layout/Layers.rb +232 -0
  31. data/SketchUp/Layout/LinearDimension.rb +563 -0
  32. data/SketchUp/Layout/LockedEntityError.rb +10 -0
  33. data/SketchUp/Layout/LockedLayerError.rb +11 -0
  34. data/SketchUp/Layout/Page.rb +187 -0
  35. data/SketchUp/Layout/PageInfo.rb +393 -0
  36. data/SketchUp/Layout/Pages.rb +216 -0
  37. data/SketchUp/Layout/Path.rb +326 -0
  38. data/SketchUp/Layout/Rectangle.rb +174 -0
  39. data/SketchUp/Layout/SketchUpModel.rb +522 -0
  40. data/SketchUp/Layout/Style.rb +1520 -0
  41. data/SketchUp/Layout/Table.rb +290 -0
  42. data/SketchUp/Layout/TableCell.rb +149 -0
  43. data/SketchUp/Layout/TableColumn.rb +139 -0
  44. data/SketchUp/Layout/TableRow.rb +135 -0
  45. data/SketchUp/Sketchup/Animation.rb +7 -4
  46. data/SketchUp/Sketchup/ArcCurve.rb +10 -10
  47. data/SketchUp/Sketchup/AttributeDictionaries.rb +13 -4
  48. data/SketchUp/Sketchup/AttributeDictionary.rb +12 -12
  49. data/SketchUp/Sketchup/Color.rb +68 -78
  50. data/SketchUp/Sketchup/ComponentDefinition.rb +60 -60
  51. data/SketchUp/Sketchup/ComponentInstance.rb +57 -55
  52. data/SketchUp/Sketchup/DefinitionList.rb +34 -17
  53. data/SketchUp/Sketchup/Drawingelement.rb +19 -21
  54. data/SketchUp/Sketchup/Edge.rb +22 -24
  55. data/SketchUp/Sketchup/Entities.rb +173 -162
  56. data/SketchUp/Sketchup/Entity.rb +71 -55
  57. data/SketchUp/Sketchup/Face.rb +45 -44
  58. data/SketchUp/Sketchup/Group.rb +47 -49
  59. data/SketchUp/Sketchup/Image.rb +16 -0
  60. data/SketchUp/Sketchup/ImageRep.rb +226 -0
  61. data/SketchUp/Sketchup/InstancePath.rb +13 -13
  62. data/SketchUp/Sketchup/Layer.rb +15 -17
  63. data/SketchUp/Sketchup/Material.rb +40 -30
  64. data/SketchUp/Sketchup/Materials.rb +40 -22
  65. data/SketchUp/Sketchup/Menu.rb +5 -5
  66. data/SketchUp/Sketchup/Model.rb +230 -228
  67. data/SketchUp/Sketchup/Page.rb +32 -0
  68. data/SketchUp/Sketchup/Pages.rb +3 -4
  69. data/SketchUp/Sketchup/RenderingOptions.rb +21 -16
  70. data/SketchUp/Sketchup/SectionPlane.rb +64 -0
  71. data/SketchUp/Sketchup/Selection.rb +20 -28
  72. data/SketchUp/Sketchup/ShadowInfo.rb +14 -14
  73. data/SketchUp/Sketchup/Text.rb +24 -26
  74. data/SketchUp/Sketchup/Texture.rb +28 -12
  75. data/SketchUp/Sketchup/Vertex.rb +14 -11
  76. data/SketchUp/Sketchup/View.rb +126 -116
  77. data/SketchUp/UI/Command.rb +17 -17
  78. data/SketchUp/UI/HtmlDialog.rb +8 -5
  79. data/SketchUp/UI/Notification.rb +1 -1
  80. data/SketchUp/UI/Toolbar.rb +13 -14
  81. data/SketchUp/UI/WebDialog.rb +55 -59
  82. data/SketchUp/_top_level.rb +139 -27
  83. data/SketchUp/{Array.rb → array.rb} +167 -30
  84. data/SketchUp/{Geom.rb → geom.rb} +9 -7
  85. data/SketchUp/{LanguageHandler.rb → languagehandler.rb} +15 -15
  86. data/SketchUp/{Length.rb → length.rb} +15 -15
  87. data/SketchUp/{Numeric.rb → numeric.rb} +19 -19
  88. data/SketchUp/sketchup.rb +167 -156
  89. data/SketchUp/{SketchupExtension.rb → sketchupextension.rb} +27 -27
  90. data/SketchUp/{String.rb → string.rb} +1 -1
  91. data/SketchUp/ui.rb +113 -87
  92. metadata +46 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 971d247dca78409c1ad07c0ac8b617950e0f45fd
4
- data.tar.gz: 1c357742608d50bc22df3031164b08589fa2f34c
3
+ metadata.gz: dfc2d857e68407892f7c072436c4e052dae7499d
4
+ data.tar.gz: 765ad1ffd1cbee5b0a8a73c8d8d077baf715f0a4
5
5
  SHA512:
6
- metadata.gz: 17b8031751feab019808184440b8de1622d7afc79e24970ae281863588f857bb027e8038a3f7fa1e930d8e081b643bbaee58e223d273026c3a797eda07da8442
7
- data.tar.gz: dba9df82eba6d586d3ddbc40c2d250a08e678ce255ce18aa047491b90d19a4ccca4a5ab23f1434e46717f48f9e84c04bc9c99f0cde1efffedddc983b5742d58f
6
+ metadata.gz: 1462594020825daf177b6593e5f2b9fc0aea0183041b91ce3c46c91995a3685ee461f68b30dd4ffbda1e54d9ca3bd33e71881612cc73999fea8786a6bbd0dda4
7
+ data.tar.gz: ecb41fc20697e4f2dcfc59a4fa98f2e3f45d63fc8e522c00a06bd86d4979b0dbe174612ae793462a4b51e4b16feac250499bc0f85e966bdce4afe3cc0a20ef8a
@@ -57,7 +57,7 @@ class Geom::BoundingBox
57
57
  # @param [Array<Geom::Point3d, Geom::BoundingBox, Sketchup::Vertex>]
58
58
  # points_or_bb
59
59
  #
60
- # @return boundingbox - the new, resized, BoundingBox object if successful
60
+ # @return [Geom::BoundingBox]
61
61
  #
62
62
  # @version SketchUp 6.0
63
63
  def add(*args)
@@ -72,7 +72,7 @@ class Geom::BoundingBox
72
72
  # # This will return a point Point3d(150, 300, -150).
73
73
  # point = boundingbox.center
74
74
  #
75
- # @return point - the Point3d at the center of the bounding box
75
+ # @return [Geom::Point3d] the Point3d at the center of the bounding box
76
76
  # if successful
77
77
  #
78
78
  # @version SketchUp 6.0
@@ -95,7 +95,7 @@ class Geom::BoundingBox
95
95
  # # This will return true.
96
96
  # boundingbox.empty?
97
97
  #
98
- # @return boundingbox - the BoundingBox object which was cleared
98
+ # @return [Geom::BoundingBox] the BoundingBox object which was cleared
99
99
  #
100
100
  # @version SketchUp 6.0
101
101
  def clear
@@ -114,8 +114,7 @@ class Geom::BoundingBox
114
114
  #
115
115
  # @param [Geom::Point3d, Geom::BoundingBox] point_or_bb
116
116
  #
117
- # @return status - true if successful (bounding box contains a
118
- # Point3d or BoundingBox object), or false if unsuccessful.
117
+ # @return [Boolean]
119
118
  #
120
119
  # @return [Boolean]
121
120
  #
@@ -147,11 +146,11 @@ class Geom::BoundingBox
147
146
  # # This will return Point3d(100, 200, -400).
148
147
  # boundingbox.corner(6)
149
148
  #
150
- # @param corner_index
149
+ # @param [Integer] corner_index
151
150
  # A number (from 0 to 7) representing point at the
152
151
  # corner you want to retrieve.
153
152
  #
154
- # @return point - a Point3d object if successful
153
+ # @return [Geom::Point3d] a Point3d object if successful
155
154
  #
156
155
  # @version SketchUp 6.0
157
156
  def corner(corner_index)
@@ -167,7 +166,7 @@ class Geom::BoundingBox
167
166
  # # This will return a Length of 500.0.
168
167
  # length = boundingbox.depth
169
168
  #
170
- # @return depth - the depth of the bounding box if successful
169
+ # @return [Length] the depth of the bounding box if successful
171
170
  #
172
171
  # @version SketchUp 6.0
173
172
  def depth
@@ -184,7 +183,7 @@ class Geom::BoundingBox
184
183
  # # This will return a point a Length of ~547.72.
185
184
  # length = boundingbox.diagonal
186
185
  #
187
- # @return diagonal - the size of the diagonal for the bounding
186
+ # @return [Length] the size of the diagonal for the bounding
188
187
  # box if successful
189
188
  #
190
189
  # @version SketchUp 6.0
@@ -201,8 +200,7 @@ class Geom::BoundingBox
201
200
  # # This will return false.
202
201
  # boundingbox.empty?
203
202
  #
204
- # @return status - true if the bounding box is empty, false if it
205
- # is not empty
203
+ # @return [Boolean]
206
204
  #
207
205
  # @return [Boolean]
208
206
  #
@@ -220,7 +218,7 @@ class Geom::BoundingBox
220
218
  # # This will return a Length of 200.0.
221
219
  # length = boundingbox.height
222
220
  #
223
- # @return height - the height of the bounding box
221
+ # @return [Length] the height of the bounding box
224
222
  #
225
223
  # @version SketchUp 6.0
226
224
  def height
@@ -231,7 +229,7 @@ class Geom::BoundingBox
231
229
  # @example
232
230
  # boundingbox = Geom::BoundingBox.new
233
231
  #
234
- # @return boundingbox - a BoundingBox object if successful
232
+ # @return [Geom::BoundingBox] a BoundingBox object if successful
235
233
  #
236
234
  # @version SketchUp 6.0
237
235
  def initialize
@@ -253,10 +251,10 @@ class Geom::BoundingBox
253
251
  # boundingboxes actually overlap - then call this to get the resulting
254
252
  # boundingbox.
255
253
  #
256
- # @param boundingbox
254
+ # @param [Geom::BoundingBox] boundingbox
257
255
  # A second boundbox which might intersect boundingbox1.
258
256
  #
259
- # @return boundingbox - the resulting BoundingBox object if
257
+ # @return [Geom::BoundingBox] the resulting BoundingBox object if
260
258
  # successful, an empty BoundingBox object if unsuccessful.
261
259
  #
262
260
  # @version SketchUp 6.0
@@ -275,7 +273,7 @@ class Geom::BoundingBox
275
273
  # # This will return a point Point3d(700, 900, 800).
276
274
  # point = boundingbox.max
277
275
  #
278
- # @return point - a Point3d object representing the point where
276
+ # @return [Geom::Point3d] a Point3d object representing the point where
279
277
  # x, y, and z are the maximum in the bounding box.
280
278
  #
281
279
  # @version SketchUp 6.0
@@ -291,7 +289,7 @@ class Geom::BoundingBox
291
289
  # # This will return a point Point3d(100, 200, -400).
292
290
  # point = boundingbox.min
293
291
  #
294
- # @return point - a Point3d object representing the point where
292
+ # @return [Geom::Point3d] a Point3d object representing the point where
295
293
  # x, y, and z are the maximum in the bounding box.
296
294
  #
297
295
  # @version SketchUp 6.0
@@ -307,8 +305,7 @@ class Geom::BoundingBox
307
305
  # # This will return true.
308
306
  # boundingbox.valid?
309
307
  #
310
- # @return status - true if the bounding box is valid (not empty),
311
- # false if it is not valid (empty)
308
+ # @return [Boolean]
312
309
  #
313
310
  # @return [Boolean]
314
311
  #
@@ -326,7 +323,7 @@ class Geom::BoundingBox
326
323
  # # This will return a Length of 100.0.
327
324
  # length = boundingbox.width
328
325
  #
329
- # @return width - the width of the bounding box
326
+ # @return [Length] the width of the bounding box
330
327
  #
331
328
  # @version SketchUp 6.0
332
329
  def width
@@ -0,0 +1,172 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # The bounds2d class represents an axis aligned bounding box represented by
5
+ # two {Geom::Point2d} objects, upper left and lower right positions. The
6
+ # units utilized in the creation and modification {Geom::Bounds2d} are inches.
7
+ #
8
+ # @version LayOut 2018
9
+ class Geom::Bounds2d
10
+
11
+ # Instance Methods
12
+
13
+ # The {#==} method checks to see if the two {Geom::Bounds2d}s are equal. This
14
+ # checks whether the point values are the same
15
+ #
16
+ # @example
17
+ # entity.bounds == entity.untransformed_bounds
18
+ #
19
+ # @param [Geom::Bounds2d] other
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @version LayOut 2018
24
+ def ==(other)
25
+ end
26
+
27
+ # The {#height} method returns the height of the {Geom::Bounds2d}.
28
+ #
29
+ # @example
30
+ # bounds = Geom::Bounds2d.new({0.0, 0.0, 1.0, 1.0})
31
+ # height = bounds.height
32
+ #
33
+ # @return [Geom::Point2d]
34
+ #
35
+ # @version LayOut 2018
36
+ def height
37
+ end
38
+
39
+ # The {#initialize} method creates a new {Geom::Bounds2d}.
40
+ #
41
+ # @example
42
+ # bounds = Geom::Bounds2d.new({0.0, 0.0, 1.0, 1.0})
43
+ #
44
+ # @overload initialize(other_bounds)
45
+ #
46
+ # @param [Geom::Bounds2d] other_bounds
47
+ # @return [Geom::Bounds2d]
48
+ #
49
+ # @overload initialize(upper_left, lower_right)
50
+ #
51
+ # @param [Geom::Point2d] upper_left
52
+ # @param [Geom::Point2d] lower_right
53
+ # @return [Geom::Bounds2d]
54
+ #
55
+ # @overload initialize(float_array)
56
+ #
57
+ # @param [Array(Float, Float, Float, Float)] float_array An array of four
58
+ # floats (x, y, width, height)
59
+ # @return [Geom::Bounds2d]
60
+ #
61
+ # @overload initialize(point_array)
62
+ #
63
+ # @param [Array(Geom::Point2d, Geom::Point2d)] point_array An array of two
64
+ # {Geom::Point2d}s
65
+ # @return [Geom::Bounds2d]
66
+ #
67
+ # @overload initialize(x, y, width, height)
68
+ #
69
+ # @param [Float] x
70
+ # @param [Float] y
71
+ # @param [Float] width
72
+ # @param [Float] height
73
+ # @return [Geom::Bounds2d]
74
+ #
75
+ # @version LayOut 2018
76
+ def initialize(*args)
77
+ end
78
+
79
+ # The {#lower_right} method returns the {Geom::Point2d} of the lower right
80
+ # corner of the {Geom::Bounds2d}.
81
+ #
82
+ # @example
83
+ # bounds = Geom::Bounds2d.new({0.0, 0.0, 1.0, 1.0})
84
+ # l_r = bounds.lower_right
85
+ #
86
+ # @return [Geom::Point2d]
87
+ #
88
+ # @version LayOut 2018
89
+ def lower_right
90
+ end
91
+
92
+ # The {#set!} method sets the {Geom::Bounds2d} to match another one.
93
+ # The argument is anything that can be converted into a {Geom::Bounds2d}.
94
+ #
95
+ # @example
96
+ # bounds = Geom::Bounds2d.new(3.0, 3.0, 5.0, 5.0)
97
+ # bounds.set!(Geom::Point2d.new(0.0, 0.0), Geom::Point2d.new(2.0, 2.0))
98
+ #
99
+ # @overload set!(other_bounds)
100
+ #
101
+ # @param [Geom::Bounds2d] other_bounds
102
+ # @return [Geom::Bounds2d]
103
+ #
104
+ # @overload set!(upper_left, lower_right)
105
+ #
106
+ # @param [Geom::Point2d] upper_left
107
+ # @param [Geom::Point2d] lower_right
108
+ # @return [Geom::Bounds2d]
109
+ #
110
+ # @overload set!(float_array)
111
+ #
112
+ # @param [Array(Float, Float, Float, Float)] float_array An array of four
113
+ # floats (x, y, width, height)
114
+ # @return [Geom::Bounds2d]
115
+ #
116
+ # @overload set!(point_array)
117
+ #
118
+ # @param [Array(Geom::Point2d, Geom::Point2d)] point_array An array of two
119
+ # {Geom::Point2d}s
120
+ # @return [Geom::Bounds2d]
121
+ #
122
+ # @overload set!(x, y, width, height)
123
+ #
124
+ # @param [Float] x
125
+ # @param [Float] y
126
+ # @param [Float] width
127
+ # @param [Float] height
128
+ # @return [Geom::Bounds2d]
129
+ #
130
+ # @version LayOut 2018
131
+ def set!(*args)
132
+ end
133
+
134
+ # The {#to_a} method returns an array which contains the {Geom::Point2d} that
135
+ # define the {Geom::Bounds2d}.
136
+ #
137
+ # @example
138
+ # bounds = Geom::Bounds2d.new
139
+ # bounds.to_a.each { |point| p point.to_s }
140
+ #
141
+ # @return [Array(Geom::Point2d, Geom::Point2d)]
142
+ #
143
+ # @version LayOut 2018
144
+ def to_a
145
+ end
146
+
147
+ # The {#upper_left} method returns the {Geom::Point2d} of the upper left corner
148
+ # of the {Geom::Bounds2d}.
149
+ #
150
+ # @example
151
+ # bounds = Geom::Bounds2d.new({0.0, 0.0, 1.0, 1.0})
152
+ # u_l = bounds.upper_left
153
+ #
154
+ # @return [Geom::Point2d]
155
+ #
156
+ # @version LayOut 2018
157
+ def upper_left
158
+ end
159
+
160
+ # The {#width} method returns the width of the {Geom::Bounds2d}.
161
+ #
162
+ # @example
163
+ # bounds = Geom::Bounds2d.new({0.0, 0.0, 1.0, 1.0})
164
+ # width = bounds.width
165
+ #
166
+ # @return [Geom::Point2d]
167
+ #
168
+ # @version LayOut 2018
169
+ def width
170
+ end
171
+
172
+ end
@@ -15,18 +15,33 @@ class Geom::LatLong
15
15
  # ll = [40.01700, 105.28300]
16
16
  # latlong = Geom::LatLong.new(ll)
17
17
  # if (latlong)
18
- # UI.messagebox latlong
18
+ # UI.messagebox(latlong)
19
19
  # else
20
- # UI.messagebox "Failure"
20
+ # UI.messagebox("Failure")
21
21
  # end
22
22
  #
23
- # @param latlong
24
- # A latitude and longitude coordinate set as an Array.
23
+ # @overload initialize
25
24
  #
26
- # @return latlong - a LatLong object
25
+ # @return [Geom::LatLong]
26
+ #
27
+ # @overload initialize(latlong)
28
+ #
29
+ # @param latlong [Geom::LatLong]
30
+ # @return [Geom::LatLong]
31
+ #
32
+ # @overload initialize(lat, long)
33
+ #
34
+ # @param lat [Numeric]
35
+ # @param long [Numeric]
36
+ # @return [Geom::LatLong]
37
+ #
38
+ # @overload initialize(latlong_array)
39
+ #
40
+ # @param latlong_array [Array(Numeric, Numeric)]
41
+ # @return [Geom::LatLong]
27
42
  #
28
43
  # @version SketchUp 6.0
29
- def initialize(latlong)
44
+ def initialize(*args)
30
45
  end
31
46
 
32
47
  # The Latitude method retrieves the latitude coordinate from a LatLong object.
@@ -36,12 +51,12 @@ class Geom::LatLong
36
51
  # latlong = Geom::LatLong.new(ll)
37
52
  # latitude = latlong.latitude
38
53
  # if (latitude)
39
- # UI.messagebox latitude
54
+ # UI.messagebox(latitude)
40
55
  # else
41
- # UI.messagebox "Failure"
56
+ # UI.messagebox("Failure")
42
57
  # end
43
58
  #
44
- # @return latitude - a latitude coordinate value
59
+ # @return [Float] a latitude coordinate value
45
60
  #
46
61
  # @version SketchUp 6.0
47
62
  def latitude
@@ -55,12 +70,12 @@ class Geom::LatLong
55
70
  # latlong = Geom::LatLong.new(ll)
56
71
  # longitude = latlong.longitude
57
72
  # if (longitude)
58
- # UI.messagebox longitude
73
+ # UI.messagebox(longitude)
59
74
  # else
60
- # UI.messagebox "Failure"
75
+ # UI.messagebox("Failure")
61
76
  # end
62
77
  #
63
- # @return longitude - a latitude coordinate value
78
+ # @return [Float] a latitude coordinate value
64
79
  #
65
80
  # @version SketchUp 6.0
66
81
  def longitude
@@ -90,19 +105,19 @@ class Geom::LatLong
90
105
  def to_s
91
106
  end
92
107
 
93
- # The to_utm method converts a LatLong object to an array of two values.
108
+ # The to_utm method converts a LatLong object to a UTM object.
94
109
  #
95
110
  # @example
96
111
  # ll = [40.01700, 105.28300]
97
112
  # latlong = Geom::LatLong.new(ll)
98
113
  # utm = latlong.to_utm
99
114
  # if (utm)
100
- # UI.messagebox utm
115
+ # UI.messagebox(utm)
101
116
  # else
102
- # UI.messagebox "Failure"
117
+ # UI.messagebox("Failure")
103
118
  # end
104
119
  #
105
- # @return array - an array of two values: latitude and longitude
120
+ # @return [Geom::UTM]
106
121
  #
107
122
  # @version SketchUp 6.0
108
123
  def to_utm
@@ -0,0 +1,102 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # The OrientedBounds2d class is a bounding box represented by four
5
+ # {Geom::Point2d} objects, upper left, upper right, lower left and lower right
6
+ # positions.
7
+ #
8
+ # @version LayOut 2018
9
+ class Geom::OrientedBounds2d
10
+
11
+ # Instance Methods
12
+
13
+ # The {#==} method checks to see if the two {Geom::OrientedBounds2d}s are
14
+ # equal. This checks whether the point values are the same.
15
+ #
16
+ # @example
17
+ # entity.bounds == entity.untransformed_bounds
18
+ #
19
+ # @param [Geom::OrientedBounds2d] other
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @version LayOut 2018
24
+ def ==(other)
25
+ end
26
+
27
+ # The {#lower_left} method returns the {Geom::Point2d} of the lower left
28
+ # corner of the {Geom::OrientedBounds2d}.
29
+ #
30
+ # @example
31
+ # doc = Layout::Document.open("C:/path/to/document.layout")
32
+ # entity = doc.shared_enities.first
33
+ # bounds = entity.drawing_bounds
34
+ # l_l = bounds.lower_left
35
+ #
36
+ # @return [Geom::Point2d]
37
+ #
38
+ # @version LayOut 2018
39
+ def lower_left
40
+ end
41
+
42
+ # The {#lower_right} method returns the {Geom::Point2d} of the lower right
43
+ # corner of the {Geom::OrientedBounds2d}.
44
+ #
45
+ # @example
46
+ # doc = Layout::Document.open("C:/path/to/document.layout")
47
+ # entity = doc.shared_enities.first
48
+ # bounds = entity.drawing_bounds
49
+ # l_r = bounds.lower_right
50
+ #
51
+ # @return [Geom::Point2d]
52
+ #
53
+ # @version LayOut 2018
54
+ def lower_right
55
+ end
56
+
57
+ # The {#to_a} method returns an array which contains the {Geom::Point2d} that
58
+ # define the {Geom::OrientedBounds2d}.
59
+ #
60
+ # @example
61
+ # doc = Layout::Document.open("C:/path/to/document.layout")
62
+ # entity = doc.shared_enities.first
63
+ # bounds = entity.drawing_bounds
64
+ # bounds.to_a.each { |point| p point.to_s }
65
+ #
66
+ # @return [Array(Geom::Point2d, Geom::Point2d, Geom::Point2d, Geom::Point2d)]
67
+ #
68
+ # @version LayOut 2018
69
+ def to_a
70
+ end
71
+
72
+ # The {#upper_left} method returns the {Geom::Point2d} of the upper left corner
73
+ # of the {Geom::OrientedBounds2d}.
74
+ #
75
+ # @example
76
+ # doc = Layout::Document.open("C:/path/to/document.layout")
77
+ # entity = doc.shared_enities.first
78
+ # bounds = entity.drawing_bounds
79
+ # u_l = bounds.upper_left
80
+ #
81
+ # @return [Geom::Point2d]
82
+ #
83
+ # @version LayOut 2018
84
+ def upper_left
85
+ end
86
+
87
+ # The {#upper_right} method returns the {Geom::Point2d} of the upper right
88
+ # corner of the {Geom::OrientedBounds2d}.
89
+ #
90
+ # @example
91
+ # doc = Layout::Document.open("C:/path/to/document.layout")
92
+ # entity = doc.shared_enities.first
93
+ # bounds = entity.drawing_bounds
94
+ # u_r = bounds.upper_right
95
+ #
96
+ # @return [Geom::Point2d]
97
+ #
98
+ # @version LayOut 2018
99
+ def upper_right
100
+ end
101
+
102
+ end