Class: Geom::Bounds2d
- Inherits:
-
Object
- Object
- Geom::Bounds2d
- Defined in:
- lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb
Overview
Instance Method Summary collapse
- #==(other) ⇒ Boolean
- #height ⇒ Geom::Point2d
-
#initialize(*args) ⇒ Bounds2d
constructor
The #initialize method creates a new Bounds2d.
-
#lower_right ⇒ Geom::Point2d
The #lower_right method returns the Point2d of the lower right corner of the Bounds2d.
- #set!(*args) ⇒ Object
- #to_a ⇒ Array(Geom::Point2d, Geom::Point2d)
-
#upper_left ⇒ Geom::Point2d
The #upper_left method returns the Point2d of the upper left corner of the Bounds2d.
- #width ⇒ Geom::Point2d
Constructor Details
#initialize(other_bounds) ⇒ Geom::Bounds2d #initialize(upper_left, lower_right) ⇒ Geom::Bounds2d #initialize(x, y, width, height) ⇒ Geom::Bounds2d #initialize(point_array) ⇒ Geom::Bounds2d #initialize(float_array) ⇒ Geom::Bounds2d
The #initialize method creates a new Geom::Bounds2d.
76 77 |
# File 'lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb', line 76 def initialize(*args) end |
Instance Method Details
#==(other) ⇒ Boolean
The #== method checks to see if the two Geom::Bounds2ds are equal. This checks whether the point values are the same
24 25 |
# File 'lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb', line 24 def ==(other) end |
#height ⇒ Geom::Point2d
The #height method returns the height of the Geom::Bounds2d.
36 37 |
# File 'lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb', line 36 def height end |
#lower_right ⇒ Geom::Point2d
The #lower_right method returns the Point2d of the lower right corner of the Geom::Bounds2d.
89 90 |
# File 'lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb', line 89 def lower_right end |
#set!(other_bounds) ⇒ Geom::Bounds2d #set!(upper_left, lower_right) ⇒ Geom::Bounds2d #set!(x, y, width, height) ⇒ Geom::Bounds2d #set!(point_array) ⇒ Geom::Bounds2d #set!(float_array) ⇒ Geom::Bounds2d
The #set! method sets the Geom::Bounds2d to match another one. The argument is anything that can be converted into a Geom::Bounds2d.
131 132 |
# File 'lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb', line 131 def set!(*args) end |
#to_a ⇒ Array(Geom::Point2d, Geom::Point2d)
The #to_a method returns an array which contains the Point2d that define the Geom::Bounds2d.
144 145 |
# File 'lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb', line 144 def to_a end |
#upper_left ⇒ Geom::Point2d
The #upper_left method returns the Point2d of the upper left corner of the Geom::Bounds2d.
157 158 |
# File 'lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb', line 157 def upper_left end |
#width ⇒ Geom::Point2d
The #width method returns the width of the Geom::Bounds2d.
169 170 |
# File 'lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb', line 169 def width end |