Class: CloudMade::BBox
Instance Attribute Summary collapse
-
#points ⇒ Object
Returns the value of attribute points.
Class Method Summary collapse
Instance Method Summary collapse
- #==(bbox) ⇒ Object
-
#initialize(points) ⇒ BBox
constructor
A new instance of BBox.
Methods inherited from Geometry
Constructor Details
#initialize(points) ⇒ BBox
Returns a new instance of BBox.
164 165 166 |
# File 'lib/cloudmade/geometry.rb', line 164 def initialize(points) self.points = points end |
Instance Attribute Details
#points ⇒ Object
Returns the value of attribute points.
162 163 164 |
# File 'lib/cloudmade/geometry.rb', line 162 def points @points end |
Class Method Details
Instance Method Details
#==(bbox) ⇒ Object
180 181 182 183 |
# File 'lib/cloudmade/geometry.rb', line 180 def ==(bbox) return (bbox.points[0] == self.points[0] and bbox.points[1] = self.points[1] or bbox.points[0] == self.points[1] and bbox.points[1] = self.points[0]) end |